Results 1 to 2 of 2
  1. #1
    Dead3nd's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    34
    Reputation
    10
    Thanks
    4
    My Mood
    Bitchy

    Menu base almost done just one thing

    Almost finished a base I coded from scratch and ready to hack CA.

    I have learned alot in the past week.

    BOOL APIENTRY DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpReserved)
    {
    DisableThreadLibraryCalls(hModule);
    if(dwReason == DLL_PROCESS_ATTACH) {
    system("start");
    Sleep(5000);
    MessageBox(0, "I**********", "*************", MB_OK);
    CreateThread(NULL, NULL, &dwHookThread, NULL, NULL, NULL);
    {
    return TRUE;
    }


    ERROR
    fatal error C1075: end of file found before the left brace '{' at

  2. #2
    arun823's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Los Angeles, California
    Posts
    523
    Reputation
    151
    Thanks
    1,899
    My Mood
    Amused
    You were missing 2 ending braces.

    - Yours -
    Code:
    BOOL APIENTRY DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpReserved)
    {
    	DisableThreadLibraryCalls(hModule);
    	if(dwReason == DLL_PROCESS_ATTACH) 
    	{
    		system("start");
    		Sleep(5000);
    		MessageBox(0, "I**********", "*************", MB_OK);
    		CreateThread(NULL, NULL, &dwHookThread, NULL, NULL, NULL);
    		{//not needed
    			return TRUE;//not supposed to be returned yet
    		}//not needed
          }//needed
       return TRUE;//moved the return here
    }//needed
    - Fixed -
    Code:
    BOOL APIENTRY DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpReserved)
    {
    	DisableThreadLibraryCalls(hModule);
    	if(dwReason == DLL_PROCESS_ATTACH) 
    	{
    		system("start");
    		Sleep(5000);
    		MessageBox(0, "I**********", "*************", MB_OK);
    		CreateThread(NULL, NULL, &dwHookThread, NULL, NULL, NULL);
    	}
    	return TRUE;
    }
    Reversing is the only way to move forward.

Similar Threads

  1. [Release] I just need one thing
    By SgtGudda in forum Mission Against Terror Discussions
    Replies: 15
    Last Post: 04-17-2011, 04:55 PM
  2. Can some one post a menu base unpatched
    By eXaLtIc™ in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 21
    Last Post: 09-03-2010, 10:44 AM
  3. Almost Done =) Just need some help
    By bl00dlust in forum WarRock - International Hacks
    Replies: 4
    Last Post: 02-01-2008, 01:42 PM
  4. Super hax almost done
    By warrockk1ngs in forum WarRock - International Hacks
    Replies: 47
    Last Post: 06-07-2007, 08:59 PM
  5. One thing PC users can do that Mac users can't
    By Methadone727 in forum WarRock - International Hacks
    Replies: 20
    Last Post: 05-28-2007, 12:33 PM