Advertisement

Exporting classes from DLL

Started by April 12, 2001 10:02 AM
0 comments, last by MicTheMC 23 years, 10 months ago
I want to export some classes from an DLL. But if I use this DLL in another application I can only use functions of the classes, which don''t give back any value. In my Export-".h"-file I''ve written like this #include "class1.h" #include "class2.h" class DLLEXPORT Class1; class DLLEXPORT Class2; These functions I can use void Class1::Init(); And these not: int Class1::Count(); What can I do to solve this problem?

You''re probably getting corrupted stack warnings. You should change the compiler settings to use _stdcall for your dll''s.

Look under your project settings, C/C++ options. Its in a combo box which I believe is marked ''call method'' or something similar.

This topic is closed to new replies.

Advertisement