i got a multithreaded dll compiled with Microsoft Visual C++ 6.
The code looks similar to this:
DWORD WINAPI oncommand(PVOID params)
MessageBox(0, "test01", "test", 0);
BOOL APIENTRY DllMain(HANDLE hModule, DWORD reason, LPVOID lpReserved)
unsigned long cthreadid;
CreateThread(NULL, 0, &oncommand, 0, 0, &cthreadid);
When i compile this dll with the /MT parameter turned on, the desired messagebox doesn't pop up.
It seems, that the CreateThread function does for some odd reason not work.
Any suggestions on how to solve that?