Results 1 to 4 of 4
  1. #1
    Archangel's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Between Both Worlds
    Posts
    8,868
    Reputation
    1021
    Thanks
    8,867
    My Mood
    Angelic

    Post [Tutorial] Setting up VC++ and DirectX

    Installing Microsoft DirectX SDK

    1.) Download the installation package from microsoft.com: Download details: DirectX SDK - (February 2010)

    2.) Install the SDK by running the executable.

    3.) Once all that is done you want to configure Visual C++ so that it will find DirectX. ( Usually this is done automatically, but not always so I'll explain anyway. )
    NOTE: This is for Visual Studio 2008, for the 2010 instructions scroll down!

    VS2008
    Open up VC++ and go to Tools -> Options, this dialog should pop up:



    In the image you can see that I've highlighted some things you want to unfold.
    "Executable files" is also highlighted because you need to change it.
    First, change it to "Include files".
    Once you've done that you should add a new line and add the "\Microsoft DirectX SDK (August 2009)\Include" directory like so:



    Notice that "Include files" is selected in the top right corner and that because I have a x64 OS my program files has (x86) behind it.
    If you do not have x64 OS then the DirectX SDK is located in the regular Program Files folder.

    There are some other lines visible but those are not important for DirectX.

    Now that we have the "Include" directories set up, we need to add the "Library" directories.

    Select the "Library files" from the little drop-down list and again add a new line like so:



    Notice that you need to select either the x86 directory in "Microsoft DirectX SDK (August 2009)\Lib\" or the x64.
    Select the x86 folder no matter what your OS is.
    ( x64 is used for building 64-bit applications which you will probably not be doing )

    Now there is only very important step that yet remains:
    Click the OK button, don't just close the window as your settings will not be saved if you do.

    For 2008; Visual C++ will now always find your DirectX SDK ( headers and libraries ).
    You should be able to compile DirectX dependant code just fine now.

    VS2010
    Right click on the project and go to properties:



    Go to the Visual C++ Directories tab ( this is new in 2010 ) and add the correct libraries, scroll up to see which ones.
    ( They are detailed in the above pictures. ( Note that you might have the 2010 version of DirectX,
    the screenshots show the 2009 version, they should both work fine )



    Some hints as to how to add new lines/folders:



    Unfortunately, for VS2010, you will have to do this for every project,
    if anyone knows a way to get this standardised, please share

    Credits
    -Krtek

  2. The Following 4 Users Say Thank You to Archangel For This Useful Post:

    B4M (06-16-2010),Bobmanb (06-16-2010),kssiobr (02-22-2013),NiPiN³ (06-16-2010)

  3. #2
    Skyline.'s Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    10,160
    Reputation
    403
    Thanks
    1,613
    nice nice... i saw this the other day some where...


  4. #3
    Melodia's Avatar
    Join Date
    Dec 2009
    Gender
    female
    Posts
    2,608
    Reputation
    276
    Thanks
    1,661
    My Mood
    Dead
    Quote Originally Posted by toobanooba View Post
    nice nice... i saw this the other day some where...
    In your imagination...

    Nah, He told me before adding it here. It is a Cute idea, And it's alright since War3 added credits, But we can't me more specific without advertising, Sadly.

    So let's just say it is from Krtek @ The ********* =D.
    Love You All~

  5. #4
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,660
    Reputation
    236
    Thanks
    4,130
    My Mood
    Cheeky
    We have a term for people that come in a source code section AND need to follow these tuts: Leechers =)

    GJ @ tut, will surely contribute to the amount of 'v1ph4xz'
    Ah we-a blaze the fyah, make it bun dem!

  6. The Following User Says Thank You to Hell_Demon For This Useful Post:

    Melodia (06-17-2010)

Similar Threads

  1. [Tutorial] ALL for beginners and advanced
    By ' [H]eaDs in forum Tutorials
    Replies: 8
    Last Post: 01-12-2010, 09:07 PM
  2. [Tutorial/Snippet][VB6] Reading and writing INI Files
    By That0n3Guy in forum Visual Basic Programming
    Replies: 6
    Last Post: 10-26-2009, 06:31 PM
  3. Replies: 55
    Last Post: 09-10-2009, 12:07 AM
  4. tutorial O.p.k and invisible
    By Scottsmith in forum WarRock - International Hacks
    Replies: 5
    Last Post: 07-20-2007, 03:56 PM
  5. Tutorial of unlimited ammo, and the God Mode
    By Scottsmith in forum WarRock - International Hacks
    Replies: 22
    Last Post: 05-22-2007, 06:16 AM