Is DLLMain required?
-
I'm trying to convert some static libraries we have to DLLs. I'm trying to keep the code as portable as possible so I really would not like to use any windows headers. 1) Can I just leave out the Dllmain function and just use delspec(dllimport/export) etc... for the class declarations. 2) Is it possible to just change some project settings to covert a project from a static library to a dll? (I remember in my makefile/*nix days all i had to do was change a flag). Cheers Asim Hussain e: asim@jawache.net w: www.jawache.net
-
I'm trying to convert some static libraries we have to DLLs. I'm trying to keep the code as portable as possible so I really would not like to use any windows headers. 1) Can I just leave out the Dllmain function and just use delspec(dllimport/export) etc... for the class declarations. 2) Is it possible to just change some project settings to covert a project from a static library to a dll? (I remember in my makefile/*nix days all i had to do was change a flag). Cheers Asim Hussain e: asim@jawache.net w: www.jawache.net
Have a look at this. It's a pretty decent overview of your DLL options from within VS. http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=617[^]
Paul Lyons, CCPL
Certified Code Project Lurker
What a lon