Stupid errors

Posts 19 of 9 · Page 1 of 1
Stupid errors
im trying to compile my hotkey hack and i keep getting this error does anyone know what i need to do to fix it

error C2447: '{' : missing function header (old-style formal list?)

thats the error and this is the code that it is refrencing



{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&main, NULL, 0,NULL);
break;
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}

plz help me
Something wrong there.
Please tell me there is a line above the first { with text in it.
i think your missing
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)

above that code
ohhh kk thanks guys i realized that i had this and then another dllmain.cpp in the project so i deleted it and it work thanks for the help
umm do you have a file called dllmain.cpp in the project?
just rename the dllmain to anything just might work

works for me.
it ok i got it to work
/close request
/Solved
/Closed
Posts 19 of 9 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?