The reason why it should be empty is because I need to write it in C:
http://stackoverflow.com/questions/951516/what-good-ides-are-availble-for-c/951582#951582
But how to write a dll from scratch?
The reason why it should be empty is because I need to write it in C:
http://stackoverflow.com/questions/951516/what-good-ides-are-availble-for-c/951582#951582
But how to write a dll from scratch?
Windows DLL are written using this skeleton
#include <windows.h> BOOL WINAPI DllMain( __in HINSTANCE hinstDLL, __in DWORD fdwReason, __in LPVOID lpvReserved ){ switch(fdwReason){ case DLL_PROCESS_ATTACH: break; case DLL_PROCESS_DETACH: break; case DLL_THREAD_ATTACH: break; case DLL_THREAD_DETACH: break; } return 0; }
See here on the MSDN for this and an example of it here. Here is a tutorial on creating a DLL. A more in-depth tutorial can be found here.
Hope this helps, Best regards, Tom.
Use File -> New project -> Visual C++ -> Win32 project
Select application type DLL and additional options Empty project.
Edit:
To get a C template the easiest way is to not check Empty project and then convert the project:
For pointers on how to write the DLL code google for dll sample code