HelpMenu base almost done just one thing

Posts 1–2 of 2 · Page 1 of 1
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
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;
}
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Tags

Talk with us