why was my dllmain() not called?
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
// app #include extern "C" void fun(); main() { fun(); } // dll #include extern "C" { _declspec(dllexport) void fun() { std::cout<<"fun() call in Dll\n"; } } _stdcall DllMain() { std::cout<<"dllmain() \n"; }
derek7 wrote:
_stdcall DllMain()
This is not the signature for
DLLMain
BOOL WINAPI DllMain(
HINSTANCE hinstDLL,
DWORD fdwReason,
LPVOID lpvReserved
);
Nibu thomas Software Developer