Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


fatal error LNK1561: entry point must be defined

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
ZacTheSin
I post too much
Reputation: 6

Joined: 09 May 2006
Posts: 2657

PostPosted: Wed Dec 03, 2008 9:46 am    Post subject: fatal error LNK1561: entry point must be defined Reply with quote

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? Sad

_________________
If someone helps you, why not Rep them?
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Wed Dec 03, 2008 10:45 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites