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

Results 1 to 16 of 16
  1. #1

    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 http://forum.ragezone.com/f497/tutor...-1-5-a-941041/ this guide to compile the National Gunz source, and got stuck. When I try to build "CSCommon" I get the following error:

    Code:
    Error	1	error C1083: Cannot 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
    Do I need to install something else ?


  2. #2
    Account Upgraded | Title Enabled! mgdmgd is offline
    MemberRank
    Jan 2012 Join Date
    305Posts

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

    source only can be builded with VS2003..

  3. #3
    Account Upgraded | Title Enabled! Patrick2607 is offline
    MemberRank
    May 2013 Join Date
    The NetherlandsLocation
    345Posts

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

    Quote Originally Posted by mgdmgd View Post
    source only can be builded with VS2003..
    False, I got mine working in VS2013.

  4. #4

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

    I am still looking for the help..

  5. #5
    Account Upgraded | Title Enabled! Patrick2607 is offline
    MemberRank
    May 2013 Join Date
    The NetherlandsLocation
    345Posts

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

    What's your operating system?

  6. #6

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

    Quote Originally Posted by Patrick2607 View Post
    What's your operating system?
    Windows 7 64 Bit

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

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

    Quote Originally Posted by mgdmgd View Post
    source only can be builded with VS2003..
    Yes it is ^
    http://www.microsoft.com/en-us/downl....aspx?id=40770
    Cheers.

  8. #8

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

    Quote Originally Posted by sahar042 View Post
    So do I need to install Visual Studio 2013 for this ?

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

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

    Quote Originally Posted by ThroneX View Post
    So do I need to install Visual Studio 2013 for this ?
    Ah, You are using visual 2012? I am not sure about it... Check if there MFC for 2012 if not then try to install this one maybe it will work.

  10. #10

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

    Quote Originally Posted by sahar042 View Post
    Ah, You are using visual 2012? I am not sure about it... Check if there MFC for 2012 if not then try to install this one maybe it will work.
    Well there is no MFC for 2012. I have installed VS 2013 but got a problem with that library.. it says there is no vs installed on the computer (tried running as admin). Will see what I can do.

  11. #11
    Account Upgraded | Title Enabled! Patrick2607 is offline
    MemberRank
    May 2013 Join Date
    The NetherlandsLocation
    345Posts

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

    It is because you need the Professional/Ultimate edition

  12. #12

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

    Quote Originally Posted by Patrick2607 View Post
    It is because you need the Professional/Ultimate edition
    Alright, will try it right now.

  13. #13

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

    Here is the new list of errors I get..

    http://prntscr.com/3kp9nc

  14. #14
    Account Upgraded | Title Enabled! Patrick2607 is offline
    MemberRank
    May 2013 Join Date
    The NetherlandsLocation
    345Posts

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

    Okay, here's a workaround:
    Find winnt.h. (Hover the mouse over the filename from the error to see the path)

    Search for:
    Code:
    typedef void * POINTER_64 PVOID64;
    Replace with:
    Code:
    typedef void * __ptr64 PVOID64;

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

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

    http://forum.ragezone.com/f497/tutor...-1-5-a-941041/
    *OutputDebugStr to OutputDebugString ,don't commet it out like he said in the tutorial.
    Also on DXGetErrorString8 and DXGetErrorString9 to DXGetErrorString.
    If you want i will upload for you the SDK.

  16. #16

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

    Thank you very much for the help guys. I will be trying those when I am at home and let you know about the updates. Sahar, I will catch you over skype aswell.



Advertisement