[Dev-C++] Exporting a Class in C++....
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Raghunath Marella.S <ms...@ya...> - 2002-08-06 13:42:12
|
Hi there, I am trying to export a class in a DLL. I have declared that class as __declspec(dllexport). I am trying to link this DLL dynamicall from an executable. With the help of a example in MSDN, i declared a similar class in executable, with same name and also the same funcitons which are required to call from executable. This class in 'exe' was declared __declspec(dllimport). NOw a object for this class has been declared in 'exe' and calling member functions thro object. The DLL was loaded by LoadLibrary(..) call. WIll any one let me know is the above procedure sufficient or something else also to be done. thanks & regards, Raghunath __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com |