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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Using Header Files
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

FunWithNumbers88

USA
3 Posts

Posted - 08/01/2011 :  12:14:45 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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!

cpyang

USA
1406 Posts

Posted - 08/01/2011 :  8:14:57 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply

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


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

CP

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000