The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Using Header Files

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
FunWithNumbers88 Posted - 08/01/2011 : 12:14:45 PM
Origin Ver. and Service Release (Select Help-->About Origin): 8.51
Operating System: Windows 7


So, I've created a header file:

void PrintTxtToWorkSheet(stdioFile);

Then I link it with:

#include <FullPathName.h>

But when I call it:

PrintTxtToWorkSheet(InputFile);

I get:

Virtual Function of Type base being called, please override the function in your derived class.

But I don't have any classes yet. I have a simple cpp file, that defines the function PrintTxtToWorkSheet above the main, which calls the included function.

So, how do I use header files in Origin C? Is there anyway I can not use the full path name everytime?


22s!
1   L A T E S T    R E P L I E S    (Newest First)
cpyang Posted - 08/01/2011 : 8:14:57 PM

#include "FullPathName.h"// same location as .cpp


When using <FullPathName.h>, it assumes the header to be in Origin's system folder.

CP


The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000