[ENG] Error: Error 1 error C2601: 'HackMain' local function definitions are illegal

08/20/2013 04:02 paulll0len#1
So, as the title says I've been encountering an error
Error 1 error C2601: 'HackMain' local function definitions are illegal
I'm running on VC++ (Visual C++)
This is my code:
Code:
void HackMain()
{
	for (;; )
	{
		HackThread();
	}
}
BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
	if ( dwReason == DLL_PROCESS_ATTACH )
	{
		CreateThread(NULL,NULL,(LPTHREAD_START_ROUTINE)HackMain,NULL,NULL,NULL);
	}
	return TRUE;
	 
}

}
All help is appreciated.
08/20/2013 11:49 kissein#2
[Only registered and activated users can see links. Click Here To Register...]

Quote:
Or, there may be an extra brace in your source code before the location of the C2601 error.
count your braces