ZacTheSin I post too much
Reputation: 6
Joined: 09 May 2006 Posts: 2657
|
Posted: Wed Dec 03, 2008 9:46 am Post subject: fatal error LNK1561: entry point must be defined |
|
|
Either I've forgotton to do something in my sleepy state, or my VS is facked.
Anyway, it says the error stated above, even though I have this:
| Code: | BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hModule);
CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)MainWin, hModule, 0, NULL);
break;
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
FinishedExit = TRUE;
break;
}
return TRUE;
} |
with my friend, DLLMain, so that should sort out the entry point shit.
What am I doing wrong?
_________________
If someone helps you, why not Rep them? |
|
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Wed Dec 03, 2008 10:45 am Post subject: |
|
|
Settings -> General -> Configuration Type -> Dynamic-Link Library (.dll)
You could also change the entry point in Linker -> Advanced -> Entry Point, but your application must be compiled as a DLL to get the right parameters passed to DllMain.
Last edited by Symbol on Wed Dec 03, 2008 10:46 am; edited 1 time in total |
|