directx sdk samples not working

This is a discussion on directx sdk samples not working within the C++ Programming forums, part of the General Programming Boards category; It seems like every time I try to learn about this language I have errors and design flaws fighting me ...

  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    28

    directx sdk samples not working

    It seems like every time I try to learn about this language I have errors and design flaws fighting me every step of the way. My hats off to you folks who were actually able to learn without going to school.

    Anyway, I downloaded the directx sdk, opened the sample browser and downloaded the first tutorial. I attempted to compile it and got a dialog saying:

    "This application has failed to start because d3d11.dll was not found. Re-installing the application may fix this problem"

    Where would this file be? Where should I install it if it isn't on my system?

  2. #2
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    You must install the re-dist for DirectX 11 in order to run games that use it or develop games that use it.

    My hats off to you folks who were actually able to learn without going to school.
    I don't think D3D and DirectX are taught in many schools.

  3. #3
    Registered User
    Join Date
    May 2010
    Posts
    28
    I downloaded directx redistributable, extracted and installed in

    C:\Program Files\Microsoft SDKs

    same problem. Cannot find d3d11.dll

    Did I install it wrong?

  4. #4
    Registered User
    Join Date
    Mar 2010
    Posts
    109
    I'm not sure you want to install it into that folder, unless that folder is part of your environment PATH. I think d3d dlls are generally installed into C:\Windows\system32 which will be in your PATH.

  5. #5
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    No you didn't install it. First off you are not given a choice as to where to install DirectX. It will ALWAYS install in <WindowsDrive>\Windows\System32. You do not have a choice. You most likely unzipped the SDK but this is not the redist's. The redist's are included with the SDK but are not part of the SDK. The redist's are also available on every single game CD/DVD out there. The redist ensures that your DirectX environment matches the developer's environment and thus guarantees compatibility.

    Start->Run->dxdiag

    That will show you what DirectX version you have and all the versions of your DLLs.

  6. #6
    Registered User
    Join Date
    May 2010
    Posts
    28
    okay, I ran dxdiagnostic and it tells me:

    Several files (kstvtune.ax, ksxbar.ax, kswdmcap.ax, etc.) are incorrectly installed in the Windows folder and should be deleted.
    The file d3d9d.dll is a debug version, which will run slower than the retail version.

    where would you recommend I go to download a fix for this?

  7. #7
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    Install DirectX 11.

  8. #8
    Registered User
    Join Date
    Dec 2008
    Posts
    7
    ...what operating system are you using? is it windows xp? because that wont work with dx 11. also i assume you have a directx 11 video card right?



    only vista and 7 work with directx 11.

  9. #9
    Registered User
    Join Date
    May 2010
    Posts
    28
    Yes, It's Win XP

    Does this mean I can't program with directx?

  10. #10
    Registered User
    Join Date
    May 2010
    Posts
    28

    Trying this again

    Okay, I reinstalled DirectX SDK and it tells me the file wavebank.xwb is corrupt. WTF?!? Is MS just releasing a crappy product? Or is it on my end?

  11. #11
    Registered User
    Join Date
    May 2010
    Posts
    28
    Tried to run my program. d3dx9 not found. I googled and found the code to make the file, which I did and placed in the library, now it can't find d3dx9math.h

    So if I can find all the files associated with this one and build them, would that work?

    Or maybe I should downgrade to an earlier version of directx

  12. #12
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    Okay, I reinstalled DirectX SDK and it tells me the file wavebank.xwb is corrupt. WTF?!? Is MS just releasing a crappy product? Or is it on my end?
    No, it's you.

    Yes, It's Win XP
    Does this mean I can't program with directx?
    If you are using version 10 or greater then yes this means you cannot use that version of DirectX on WinXP.


    only vista and 7 work with directx 11.
    This is your answer...but just in case....

    DirectX versions 10 and up will NOT work on XP

  13. #13
    Registered User
    Join Date
    Mar 2010
    Posts
    109
    Sounds like you are using DirectX9 now. It still sounds like you aren't installing the redistributable properly, though.

  14. #14
    Registered User
    Join Date
    May 2010
    Posts
    28
    Okay, here is the step by step. I'm starting from scratch. I've uninstalled DXSDK (June 2010). According to the website Download details: DirectX SDK - (June 2010) it works with windows XP so that should not be an issue.

    I'm now installing it in: C:\Program Files\Microsoft DirectX SDK (June 2010)

    As soon as I'm given the option, I get a little popup in the tray that says .../wavebank.xwb is corrupt and to run chkdsk which I did. The console spat out a bunch of crap saying it deleted this index and that one. I assume it isn't related to my current issue but if you folks think it is, I'll do it again and post it.

    Now I have the dialog for installation options. By default, everything is selected except DirectX symbol files. Last time, I installed those anyway. This time, I'll just go with the default. Again, probably not related.

    Installing...

    And the popup returns telling me that WaveBank.xwb is corrupt. This is in a sample folder so it seems like there should be no effect on the overall coding. Correct me if I'm wrong. Also a dialog pops up twice with an error writing to that particular file. I will skip it for now.

    Finished installing.

    Now I'm installing the redistributable also June 2010. Located here: Download DirectX Redistributable June 2010 Free - A very useful application for running and displaying applications rich in multimedia elements - Softpedia

    Here goes:

    Unsure of exactly where to extract the files, I've placed them in a desktop folder. They are cab files which according to my computer are a type of zip file. I assume I don't need to extract every one (pain in the ass if I do) but just place them in the correct directory.

    I did a search for similar files and found two folders.

    C:\Program Files\Microsoft SDKs

    and

    C:\Program Files\Microsoft DirectX SDK (June 2010)\Redist

    I think it's the first one but I won't go any further for now. I'll listen to what you fine gentlemen have to say. But am I right so far?

  15. #15
    Registered User
    Join Date
    Mar 2010
    Posts
    109
    If you have to extract the redistributable, there is probably a setup file inside the folder you extract it to. You need to run that. The process is not complete without the install.

    Have you been using the same binary when you install the DX SDK? It may be that you have a corrupt install file and that's why you are getting those notifies. Do a CRC check or redownload it. Otherwise, it sounds like the SDK isn't uninstalling properly and you may need to wipe that area. However, I don't think this is your main problem.

Page 1 of 3 123 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help explaining test questions
    By Sentral in forum General Discussions
    Replies: 26
    Last Post: 11-09-2009, 10:10 PM
  2. DirectX - Starting Guide?
    By Zeusbwr in forum Game Programming
    Replies: 13
    Last Post: 11-24-2004, 11:49 PM
  3. DirectX 9 SDK
    By Polymorphic OOP in forum Windows Programming
    Replies: 4
    Last Post: 12-21-2002, 12:55 AM
  4. DirectX SDK and ActiveX SDK
    By moemen ahmed in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 06-30-2002, 04:16 AM
  5. Working Code Samples Wanted
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 02-13-2002, 09:05 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21