1.5 Source Visual Studio 2012 "Cannot open include file: 'afxdb.h'"

Results 1 to 4 of 4
  1. #1
    Account Upgraded | Title Enabled! Taxic is offline
    MemberRank
    Nov 2011 Join Date
    The NetherlandsLocation
    203Posts

    ! 1.5 Source Visual Studio 2012 "Cannot open include file: 'afxdb.h'"

    I had no other chance so I have downloaded Visual Studio 2012. I was following [Tutorial] How to build Gunz 1.5 in Visual Studio 2012 - RaGEZONE - MMO development community this guide to compile the juriens repack #3 edited Gunz source, and got stuck. When I try to build "CSCommon" I get the following error:


    PHP Code:
    Error    1    error C1083Cannot open include file'afxdb.h'No such file or directory    C:\Users\user\Desktop\Gunz\Source\Source_Code\Stable\CSCommon\Include\stdafx.h    14    1    CSCommon 

    Here is stdafx.h:

    PHP Code:
    // stdafx.h : include file for standard system include files,
    //  or project specific include files that are used frequently, but
    //      are changed infrequently
    //

    #ifndef _STDAFX_H
    #define _STDAFX_H

    #if _MSC_VER > 1000
    #pragma once
    #endif // _MSC_VER > 1000

    // ¿©±â´Ù include
    #include <afxdb.h>
    #include <afxtempl.h>
    #include <afxdtctl.h>

    #include <Winsock2.h>
    #include <mswsock.h>
    #include <crtdbg.h>
    #include <windows.h>
    #include <stdlib.h>

    /*    // for debug publish
    #define _HAS_ITERATOR_DEBUGGING 0
    #define _SECURE_SCL 0 

    #undef //_ASSERT
    #define //_ASSERT(expr) ((void)0)
    #undef ASSERT
    #define ASSERT(f)          ((void)0)
    */

    // stl
    #include <string.h>
    #include <map>
    #include <list>
    #include <vector>
    #include <algorithm>

    #ifndef _PUBLISH

    //    #define _CLASSIC                    // Å¬·¡½Ä ¸ðµå¿ë µðÆÄÀÎ
    #endif

    #include "../MFeatureDefine.h"

    #define _QUEST_ITEM        // Äù½ºÆ® ¾ÆÀÌÅÛ °³¹ß¿ë. by Ãß±³¼º.
    #define _MONSTER_BIBLE    // ¸ó½ºÅÍ µµ°ü °³¹ß¿ä. by Ãß±³¼º. ¸±¸®Áî¶§¹®¿¡ Àá½Ã º¸·ù.
    #define _BLOCK_HACKER    // ÇØÅ·°ü·Ã Á¤º¸¸¦ DB¿¡ ³²±â´Â ÀÛ¾÷.


    #include "MLocaleDefine.h"
    #include "MDebug.h"
    #include "MMatchDebug.h"
    #include "MXml.h"

    #include "MUID.h"
    #include "MMatchGlobal.h"
    #include "MMatchUtil.h"
    #include "MSharedCommandTable.h"
    #include "MCommand.h"
    #include "MCommandParameter.h"
    #include "MCommandCommunicator.h"
    #include "MErrorTable.h"
    #include "MServer.h"
    #include "MMatchServer.h"
    #include "MMatchClient.h"
    #include "MObject.h"
    #include "MMatchItem.h"
    #include "MMatchObjCache.h"
    #include "MMatchStage.h"
    #include "MMatchObject.h"
    #include "MMatchChannel.h"


    #include "MMatchDebug.h"

    #endif 


    Please someone help.


  2. #2
    C:\User\Secondary\Desktop secondary is offline
    MemberRank
    Jul 2013 Join Date
    UnresolvedLocation
    642Posts

    Re: 1.5 Source Visual Studio 2012 "Cannot open include file: 'afxdb.h'"

    Download visual studio 2003! no errors

  3. #3
    Account Upgraded | Title Enabled! Lib is offline
    MemberRank
    Oct 2013 Join Date
    281Posts

    Re: 1.5 Source Visual Studio 2012 "Cannot open include file: 'afxdb.h'"

    You may have to install vs mfc

  4. #4
    Account Upgraded | Title Enabled! Taxic is offline
    MemberRank
    Nov 2011 Join Date
    The NetherlandsLocation
    203Posts

    Re: 1.5 Source Visual Studio 2012 "Cannot open include file: 'afxdb.h'"

    fixed with 2003 .NET.



Advertisement