GunZ Compile Error (VS2010)
This is my first time trying to compile my own files. I tried that tutorial that someone post about making the GunZ source work in VS2012, but I did it for VS2010 since I couldn't download it at the moment. I get this:
Code:
_WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)
Code:
C:\Users\Anju\Desktop\GunZ\7. Source\cml\Include\MXml.h(28): fatal error C1083: Cannot open type library file: 'msxml.dll': No such file or directory
Code:
c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(290): error C2146: syntax error : missing ';' before identifier 'PVOID64'
c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(290): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(8992): error C2146: syntax error : missing ';' before identifier 'Buffer'
c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(8992): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(8992): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
Code:
c:\users\anju\desktop\gunz\7. source\cscommon\include\MMatchDebug.h(22): error C2065: '_secerr_handler_func' : undeclared identifier
c:\users\anju\desktop\gunz\7. source\cscommon\include\MMatchDebug.h(22): error C2146: syntax error : missing ')' before identifier 'func'
c:\users\anju\desktop\gunz\7. source\cscommon\include\MMatchDebug.h(22): error C2182: 'SetSecurityErrorHandler' : illegal use of type 'void'
c:\users\anju\desktop\gunz\7. source\cscommon\include\MMatchDebug.h(22): error C2059: syntax error : ')'
The errors that are posted in the [code] tags are the only errors I'm getting. I have no clue what to do with these error since I have never really worked with programming before. Please post some solution to these errors.
Re: GunZ Compile Error (VS2010)
Bump.
Got the 2nd and 4th errors fixed thanks to a friend. Only problem is the 1st and 3rd code tag error logs.
Re: GunZ Compile Error (VS2010)
msxml4.dll -> CML -> include.
about the last error you just need to add // on the place you got the error
and about this one :
Quote:
c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(290): error C2146: syntax error : missing ';' before identifier 'PVOID64'
c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(290): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(8992): error C2146: syntax error : missing ';' before identifier 'Buffer'
c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(8992): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(8992): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
i think it's the SDK folder in the source, you should replace it for vs2010.
Re: GunZ Compile Error (VS2010)
Ill check and try it out once I'm available on the computer. Ill check back later. Thanks for your response.
Re: GunZ Compile Error (VS2010)
anju add skype ghPer44 and help you.
Re: GunZ Compile Error (VS2010)
add #define POINTER_64 __ptr64 at stdafx.h
Re: GunZ Compile Error (VS2010)
Edit: Nevermind, got it fixed. Removed the cryptlib.
Now the only problem I have is whenever I try to login, it crashes. I am quite sure there was a fix for that, but I'm not sure where.
Re: GunZ Compile Error (VS2010)
Quote:
Originally Posted by
Anju
Edit: Nevermind, got it fixed. Removed the cryptlib.
Now the only problem I have is whenever I try to login, it crashes. I am quite sure there was a fix for that, but I'm not sure where.
CheckReturnCallStack.h
Quote:
#pragma once
#ifdef _DEBUG
#define CHECK_RETURN_CALLSTACK(FuncName) DWORD ret_ptr_dlrjsTmwlakdy = 0; \
DWORD *dwI = NULL; \
__asm {pushad} \
__asm {mov eax, ebp} \
__asm {add eax, 4} \
__asm {mov eax, dword ptr ds:[eax]} \
__asm {mov ret_ptr_dlrjsTmwlakdy, eax} \
__asm {mov eax, FuncName} \
__asm {mov dwI, eax} \
__asm {popad}; \
DWORD top = (DWORD)0x00401000 + 0x246000; \
DWORD bottom = (DWORD)0x00401000; \
if( (ret_ptr_dlrjsTmwlakdy <= bottom) || (ret_ptr_dlrjsTmwlakdy >= top) ) { \
MCommand* pC=ZNewCmd(MC_REQUEST_GIVE_ONESELF_UP); ZPostCommand(pC); }
#else
#define CHECK_RETURN_CALLSTACK(FuncName)
#endif
// ַװ¼צ ֱרְװ½ֳ ESP ֳ¼ֵ©ַֿ·ֱ´ֲ ְַµµ·־ ¸¸µח µםַׁ ¸ֵֵ©·־ (±׳·¯³× ¾ֱֶק ֱ¦´כ·־ ±¸ַצµַ¾מ ְײֱצ ¾ֺ´)
#ifdef _DEBUG
#define CHECK_RETURN_CALLSTACK_ESP(FuncName) DWORD ret_ptr_dlrjsTmwlakdy = 0; \
DWORD *dwI = NULL; \
__asm {pushad} \
__asm {mov eax, esp} \
__asm {add eax, 4} \
__asm {mov eax, dword ptr ds:[eax]} \
__asm {mov ret_ptr_dlrjsTmwlakdy, eax} \
__asm {mov eax, FuncName} \
__asm {mov dwI, eax} \
__asm {popad}; \
DWORD top = (DWORD)0x00401000 + 0x246000; \
DWORD bottom = (DWORD)0x00401000; \
if( (ret_ptr_dlrjsTmwlakdy <= bottom) || (ret_ptr_dlrjsTmwlakdy >= top) ) { \
MCommand* pC=ZNewCmd(MC_REQUEST_GIVE_ONESELF_UP); ZPostCommand(pC); }
#else
#define CHECK_RETURN_CALLSTACK_ESP(FuncName)
#endif
// mlog("callstack : 0x%X~0x%X, 0x%X\n", bottom, top, ret_ptr_dlrjsTmwlakdy ); \
// mlog("func addr : 0x%x\n", dwI ); \
// printf("callstack hack : 0x%X~0x%X, 0x%X\n", bottom, top, ret_ptr_dlrjsTmwlakdy ); \
// #define CHECK_RETURN_CALLSTACK(FuncName) NULL;
Check this.
Re: GunZ Compile Error (VS2010)
Quote:
Originally Posted by
sahar042
CheckReturnCallStack.h Check this.
credits ?
Re: GunZ Compile Error (VS2010)
Quote:
Originally Posted by
ghPer
credits ?
Me lol?
Re: GunZ Compile Error (VS2010)
Everything looks the same to me comparing it from yours to mine.
Re: GunZ Compile Error (VS2010)
Quote:
Originally Posted by
sahar042
Me lol?
no leecher, credits to challenge quest source.
Re: GunZ Compile Error (VS2010)
Quote:
Originally Posted by
ghPer
no leecher, credits to challenge quest source.
What lol? i didn't took it from cq source, why i need to take it from them if i can do it by my self oh god.
Oh wait don't tell me i also took it from CQ source?
http://forum.ragezone.com/f311/gunz-...9/#post7731930
http://images2.wikia.nocookie.net/__...onkeyshrek.jpg
BTW i compiled my source before cq source released...
And i also released National source with VS2003 because i didn't want to release it with Vs2010.
Re: GunZ Compile Error (VS2010)
Please try not to start a fight guys.
Anyways, back to the topic, thanks for the fix.