The functions in the .cpp files need to be exported too, not just the prototypes. Use depends to see what's in the DLL files. BTW, if a .lib file isn't generated, you're probably not exporting anything.
Its funny though that my other practice/test solutions worked, although admittedly I didn't have a function calling another function inside it like I do above.
Would anyone be able to clarify that little difference?
Another question, with this code that I am working on at the moment I noticed that some functions are exported with
extern "C"
whilst some are not...
Is there a reason for this?
1 2
extern"C"int far _declspec(dllexport) WeeksLate(int myear, char far *fdate, char far *tdate);
void far _declspec(dllexport) PrintItemTitle (HDC hdcPrn,int ypos,int lMarg,int rMarg,int cxPage,int year);
I also noticed some functions are exported like so
1 2 3
_declspec(dllexport) void func_2( int a )
and others like
void _declspec(dllexport) func_2( int a )
I am just wondering is there a difference in the order? I have tried compiling both ways without problems.