exporting classes using regular dll
-
how do i export classes using regular dll? because i donot want to use an extension DLL to export classes. regards Shailesh
-
how do i export classes using regular dll? because i donot want to use an extension DLL to export classes. regards Shailesh
Shailesh Halankar wrote:
how do i export classes using regular dll?
#define DllExport
__declspec( dllexport )
class
DllExport
C
{
int i;
virtual int func( void )
{ return 1; }
};
Nibu thomas A Developer Programming tips[^] My site[^]
-
how do i export classes using regular dll? because i donot want to use an extension DLL to export classes. regards Shailesh
Shailesh Halankar wrote:
how do i export classes using regular dll? because i donot want to use an extension DLL to export classes.
In continuation with Nibu, you have to include the lib and header file in your project!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
Shailesh Halankar wrote:
how do i export classes using regular dll?
#define DllExport
__declspec( dllexport )
class
DllExport
C
{
int i;
virtual int func( void )
{ return 1; }
};
Nibu thomas A Developer Programming tips[^] My site[^]
Thanks for the INFO how will the client import the exported class i.e wher should the __declspec( dllimport ) statement be used?
-
how do i export classes using regular dll? because i donot want to use an extension DLL to export classes. regards Shailesh
http://www.codeproject.com/dll/RegDLL.asp[^] ---------- Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peters
-
Thanks for the INFO how will the client import the exported class i.e wher should the __declspec( dllimport ) statement be used?
Shailesh Halankar wrote:
wher should the __declspec( dllimport ) statement be used?
Replace
dllexport
bydllimport
. Rest is the same.
Nibu thomas A Developer Programming tips[^] My site[^]