Results 1 to 6 of 6
  1. #1
    LostInTheDark's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    43
    Reputation
    10
    Thanks
    8
    My Mood
    Bored

    Error: cannot open source file "d3dx9.h"?

    I am obviously new to hacking and C++, so please don't flame me and tell me to learn C++ before doing any of this. I am currently reading the sections on LearnCPP.

    My question is why every time I try to include d3dx9.h it says "Error: cannot open source file 'd3dx9.h'"? I am using Redux's Hotkey base.

    This hack won't be released so again please don't call me a noob or anything for not making my own base. I don't know enough about Combat Arms hacks or C++ to do that yet. This is just for testing purposes.

  2. #2
    ctpsolo's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    252
    Reputation
    10
    Thanks
    37
    My Mood
    Amused
    @LostInTheDark If you have made a new project (and not used the solution Redux made), you need to include the DirectX SDK. (If you don't have it, you need to download and install it first).

    I got Visual 2010 so if you have another version, it might be slightly different but should probably be about the same.

    *Click project, then your projects properties. Choose configuration properties, then VC++ Directories
    *On include directories, you need to add a new directory. On my machine it's something like c:\program files x86\Microsoft DirectX SDK June 2010\include
    *On library directories, add the same path but Microsoft DirectX SDK\lib instead

    Now it should compile properly.
    Last edited by ctpsolo; 12-16-2012 at 05:08 PM.

  3. The Following 3 Users Say Thank You to ctpsolo For This Useful Post:

    Delision (06-28-2019),Socht (06-18-2017),xxpossaxx (02-13-2019)

  4. #3
    LostInTheDark's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    43
    Reputation
    10
    Thanks
    8
    My Mood
    Bored
    @ctpsolo Thank you very much! I hadn't realized I needed something other than C++ itself.

  5. #4
    Saltine's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    493
    Reputation
    104
    Thanks
    629
    Quote Originally Posted by LostInTheDark View Post
    @ctpsolo Thank you very much! I hadn't realized I needed something other than C++ itself.
    Generally when one wants to use an external library they want to be in possession of said external library.

    Oh no! Vortex is gay!

  6. The Following 3 Users Say Thank You to Saltine For This Useful Post:

    -Bl00d- (12-17-2012),bruh97 (12-29-2017),teehee15 (12-16-2012)

  7. #5
    LostInTheDark's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    43
    Reputation
    10
    Thanks
    8
    My Mood
    Bored
    Quote Originally Posted by Saltine View Post

    Generally when one wants to use an external library they want to be in possession of said external library.
    Google here I come.

  8. #6
    -Bl00d-'s Avatar
    Join Date
    Sep 2011
    Gender
    female
    Location
    Imma girl what about it?
    Posts
    481
    Reputation
    10
    Thanks
    53
    My Mood
    Twisted
    lol google bthis :
    DirectX SDK June2010.
    that should give you everything you need
    Successful buys: 20
    Successful sells: 4
    Successful trades: 9
    Scammed: 4

     
    https://www.mpgh.net/forum/490-vouches/560562-vouches.html

    ^^^^^^^^^^^
    vouche for me?

  9. The Following User Says Thank You to -Bl00d- For This Useful Post:

    damiansharma (11-14-2016)

Similar Threads

  1. [Help] fatal error C1083: Cannot open include file: 'd3d8.h': No such file or directory
    By buro1831 in forum DirectX/D3D Development
    Replies: 4
    Last Post: 02-12-2013, 11:51 PM
  2. LINK : fatal error LNK1104: cannot open file 'd3dx9math.h'
    By frenci8 in forum C++/C Programming
    Replies: 7
    Last Post: 08-04-2011, 01:48 PM
  3. 1>LINK : fatal error LNK1181: cannot open input file 'd3dx9.lib'
    By ipwnuuaal5 in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 10
    Last Post: 08-29-2010, 02:31 AM
  4. Menu code problem. Cannot open include file: 'Base.h'
    By westomat in forum Combat Arms Help
    Replies: 12
    Last Post: 08-02-2010, 05:34 AM
  5. fatal error LNK1104: cannot open file "d3dx8.lib"
    By SteeL in forum C++/C Programming
    Replies: 8
    Last Post: 07-22-2008, 06:59 AM