Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 03:05

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



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

Discussion on [ENG] Error: Error 1 error C2601: 'HackMain' local function definitions are illegal within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2010
Posts: 8
Received Thanks: 0
Exclamation [ENG] Error: Error 1 error C2601: 'HackMain' local function definitions are illegal

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.
paulll0len is offline  
Old 08/20/2013, 11:49   #2
 
kissein's Avatar
 
elite*gold: 0
Join Date: Sep 2005
Posts: 427
Received Thanks: 87


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


Similar Threads Similar Threads
API Error Code: 100 API Error Description: Invalid parameter Error Message: redirect_
04/08/2012 - elite*gold Trading - 2 Replies
API Error Code: 100 API Error Description: Invalid parameter Error Message: redirect_uri URL is not properly formatted Das bekomme ich wenn ich ne App installiere... ich habe schon 3 Apps richtig installiert, danach kam immer das bei anderen Apps die ich installiert habe.. was heisst das? redirect_uri URL is not properly formatted
Fatal error: Call to undefined function session_start() in /usr/local/www/apache22/d
04/03/2010 - Metin2 Private Server - 3 Replies
Fehler kann mir jmd. da helfen? Fatal error: Call to undefined function session_start() in /usr/local/www/apache22/data/regist_yes.php on line 50
Load Local Error(local/hong kong/local_game.txt) ?!
02/15/2010 - Metin2 Private Server - 5 Replies
Wenn ich mich mit China.Exe einlogg kommt diese Fehlermeldung.. mit normaler Deutscher aber nicht.. Wieso? wäre nett wenn mir jemand helfen könnte:rolleyes: Mfg: Saishi
Load Local Error(local/hong kong/local_game.txt) ?!
11/20/2009 - Metin2 Private Server - 23 Replies
Ich hab mir heute einen P-server gebaut, aber ich habe ein problem.Wenn ich versuche meinen P-server zu öffnen kommt die Feherlmeldung: Load Local Error(local/hong kong/local_game.txt). Weiß jemand wie man dieses Problem beheben kann ? Wäre echt nett wenn mir mal jemand dabei hilft !! :D



All times are GMT +1. The time now is 03:05.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.