GunZ Compile Error (VS2010)

Results 1 to 14 of 14
  1. #1
    In Progress... FFXIV... Anju is offline
    MemberRank
    Oct 2010 Join Date
    Mist Ward 7 #38Location
    1,946Posts

    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.


  2. #2
    In Progress... FFXIV... Anju is offline
    MemberRank
    Oct 2010 Join Date
    Mist Ward 7 #38Location
    1,946Posts

    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.

  3. #3
    Fuck Army. sahar042 is offline
    MemberRank
    Jul 2009 Join Date
    833Posts

    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 :
    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.

  4. #4
    In Progress... FFXIV... Anju is offline
    MemberRank
    Oct 2010 Join Date
    Mist Ward 7 #38Location
    1,946Posts

    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.

  5. #5
    Enthusiast ghPer is offline
    MemberRank
    Jul 2013 Join Date
    32Posts

    Re: GunZ Compile Error (VS2010)

    anju add skype ghPer44 and help you.

  6. #6
    Its Friday :D! trunksx is offline
    MemberRank
    Feb 2007 Join Date
    PerúLocation
    232Posts

    Re: GunZ Compile Error (VS2010)

    add #define POINTER_64 __ptr64 at stdafx.h

  7. #7
    In Progress... FFXIV... Anju is offline
    MemberRank
    Oct 2010 Join Date
    Mist Ward 7 #38Location
    1,946Posts

    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.
    Last edited by Anju; 06-08-13 at 09:21 AM.

  8. #8
    Fuck Army. sahar042 is offline
    MemberRank
    Jul 2009 Join Date
    833Posts

    Re: GunZ Compile Error (VS2010)

    Quote Originally Posted by Anju View Post
    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

    #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.

  9. #9
    Enthusiast ghPer is offline
    MemberRank
    Jul 2013 Join Date
    32Posts

    Re: GunZ Compile Error (VS2010)

    Quote Originally Posted by sahar042 View Post
    CheckReturnCallStack.h Check this.
    credits ?

  10. #10
    Fuck Army. sahar042 is offline
    MemberRank
    Jul 2009 Join Date
    833Posts

    Re: GunZ Compile Error (VS2010)

    Quote Originally Posted by ghPer View Post
    credits ?
    Me lol?

  11. #11
    In Progress... FFXIV... Anju is offline
    MemberRank
    Oct 2010 Join Date
    Mist Ward 7 #38Location
    1,946Posts

    Re: GunZ Compile Error (VS2010)

    Everything looks the same to me comparing it from yours to mine.

  12. #12
    Enthusiast ghPer is offline
    MemberRank
    Jul 2013 Join Date
    32Posts

    Re: GunZ Compile Error (VS2010)

    Quote Originally Posted by sahar042 View Post
    Me lol?
    no leecher, credits to challenge quest source.

  13. #13
    Fuck Army. sahar042 is offline
    MemberRank
    Jul 2009 Join Date
    833Posts

    Re: GunZ Compile Error (VS2010)

    Quote Originally Posted by ghPer View Post
    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

    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.
    Last edited by sahar042; 07-08-13 at 09:04 AM.

  14. #14
    In Progress... FFXIV... Anju is offline
    MemberRank
    Oct 2010 Join Date
    Mist Ward 7 #38Location
    1,946Posts

    Re: GunZ Compile Error (VS2010)

    Please try not to start a fight guys.

    Anyways, back to the topic, thanks for the fix.
    Last edited by Anju; 07-08-13 at 01:28 PM.



Advertisement