Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dll export problem

Status
Not open for further replies.

mikeeeblue

Programmer
Joined
May 26, 2005
Messages
7
Location
GB
Hi all.

I have this .cpp file used to create a dll file. When i compile it however my other exe's cant seem to communicate with it. I believe that it is an "export" problem, meaning that the dll isnt exporting the functions that the exe needs to communicate with it. Is there a setting in VC++ that i can change to allow for exporting of functions? Or can i create a .def file with the export commands inside and allow VC++ to use this file for exporting?

Thanks for any help :-)

 
Say your class is XXX. Declare something like
Code:
#ifdef XXX_IMPL
#define XXX_DECL __declspec(dllexport)
#else
#define XXX_DECL __declspec(dllimport)
#endif


class XXX_DECL XXX
XXX_IMPL should be defined in the module the implements the class.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top