Click to See Complete Forum and Search --> : Export Class


Ten
June 11th, 2005, 11:30 AM
Hello,

Is it possible to export a class from a dll ?

NoHero
June 11th, 2005, 11:41 AM
Of course. Just use the __declspec(dllexport) attribute to export it and __declspec(dllimport) to include them.

Here are some links.:


dllimport, dllexport (MSDN) (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccelng/htm/msmod_20.asp)
DLL Topics (MSDN) (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/_core_using___declspec.28.dllimport.29_.and___declspec.28.dllexport.29.asp)
Exporting from a DLL Using __declspec(dllexport) (MSDN) (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/_core_export_from_a_dll_using___declspec.28.dllexport.29.asp)