Thread: Problems with DirectX 9.0 SDK includes

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    41

    Problems with DirectX 9.0 SDK includes

    I am using DirectX 9.0 SDK, and am trying to set up Dev C++ 4.9.9.2 to use them. At first, the following three files gave me problems:

    d3dx9.h
    dmusici.h
    dshow.h

    I would include them and the compiler would spit a whole whack of errors back at me that I do not understand. I went to Microsoft's website to download the October 2005 update of the DirectX 9.0 SDK, and that took care of the d3dx9.h problem, but the other two still will not compile with my project. I want to be able to use music, dang it! Can anybody help me out with this? I am working out of the book "Programming Role Playing Games with Direct X 2nd Edition"

    I should also mention that I do not seem to have a WINMM.LIB file that I need. Can anybody help with that?
    Last edited by SkyRaign; 12-18-2005 at 09:05 PM.

  2. #2
    Rabite SirCrono6's Avatar
    Join Date
    Nov 2003
    Location
    California, US
    Posts
    269
    And these errors are? You probably didn't link the libraries.

    » I should also mention that I do not seem to have a WINMM.LIB file that I need.

    Dev-C++ has a libwinmm.a file in the lib directory.
    From C to shining C++!

    Great graphics, sounds, algorithms, AI, pathfinding, visual effects, cutscenes, etc., etc. do NOT make a good game.
    - Bubba

    IDE and Compiler - Code::Blocks with MinGW
    Operating System - Windows XP Professional x64 Edition

  3. #3
    ---
    Join Date
    May 2004
    Posts
    1,379
    Dev-C++ is kinda hard to use with DX. I recommend (as a free option) getting Visual C++ Toolkit 2003, The Windows Platform SDK and the Code::Blocks IDE.

  4. #4
    Registered User
    Join Date
    Sep 2005
    Posts
    41
    Well that's just it. I DID link the libraries. Dev's errors are kinda unintelligible; that's one thing I don't like about it. I wasn't sure if that libwinmm.a file was the same thing or not. I added the .lib files to the linker directory, added the folder they were in to the library directory, and added the files themselves to the project. That seems to have taken care of the .lib ones; unless I have #include them too......(tried to and it wouldn't recognize them). The two .h files just flat won't compile......

    Out of curiosity what is in the Windows Platform SDK and Code::Blocks IDE? Are these things I get from Microsoft?

  5. #5
    Rabite SirCrono6's Avatar
    Join Date
    Nov 2003
    Location
    California, US
    Posts
    269
    Code::Blocks
    Code::Blocks features

    :: Edit
    And after looking around a bit, this seems like a clone of Dev-C++...
    Last edited by SirCrono6; 12-19-2005 at 02:38 PM.
    From C to shining C++!

    Great graphics, sounds, algorithms, AI, pathfinding, visual effects, cutscenes, etc., etc. do NOT make a good game.
    - Bubba

    IDE and Compiler - Code::Blocks with MinGW
    Operating System - Windows XP Professional x64 Edition

  6. #6
    Yah. Morgul's Avatar
    Join Date
    Feb 2005
    Posts
    109
    Dev-C++ doesn't like the Direct X SDK libraries. It should accept them but does not.

    I'd suggest either getting Visual C++ 2005 Express Edition or trying to convert the SDK libraries into .a files.
    Sic vis pacum para bellum. If you want peace, prepare for war.

  7. #7
    ---
    Join Date
    May 2004
    Posts
    1,379
    Quote Originally Posted by SirCrono6
    Code::Blocks
    Code::Blocks features

    :: Edit
    And after looking around a bit, this seems like a clone of Dev-C++...
    nope IMO code::blocks has more features

  8. #8
    Registered User
    Join Date
    Sep 2005
    Posts
    41
    Well, Visual Studio 2005 Express Edition will not install on my computer for some reason (had the same problem on my old computer).

    I was looking at Visual C++.NET 2003 though......it's around $100 though......I'm curious if any of you have used and have opinions on it. I wish I understood why VStudio won't install though...

    I'm no DOS junkie, so Visual C++ Toolkit's interface is foreign to me. If somebody would help me get it set up and working like it should, then I might be able to get by using it. I'm just an email away.
    Last edited by SkyRaign; 12-19-2005 at 08:49 PM.

  9. #9
    Yah. Morgul's Avatar
    Join Date
    Feb 2005
    Posts
    109
    Do you have any other versions/parts of Visual Studio 2005 on your computer, becuase you have to remove many of them before you can install VSC++ 2005 EE.
    Sic vis pacum para bellum. If you want peace, prepare for war.

  10. #10
    Registered User
    Join Date
    Sep 2005
    Posts
    41
    Nope. Sure don't. I am considering Visual C++.NET though

  11. #11
    Registered User
    Join Date
    Sep 2005
    Posts
    41

    What the heck now?!?!?!

    I went and got Visuall C++.NET--and now, it compiles fine, but it won't link. It gives me 'cannot open dplay.lib'. Now what am I supposed to do? Yes, all of the .lib files from the DirectX SDK are in the same folder and that folder is added to the library directory.

  12. #12
    ---
    Join Date
    May 2004
    Posts
    1,379
    I only see a 'dplayx.lib' in my /lib/ directory so try linking to that instead.

  13. #13
    Registered User
    Join Date
    Sep 2005
    Posts
    41
    Well I'll try working with that and seeing how things go. Man, I never realized what a pain it was to set up a compiler! Now I have everything running like it is supposed to, thanks to you guys. Yeah, I'm pretty naive about it all thus far but I'm doing all of this programming stuff on my own too.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Rendering problems (DirectX?)
    By OnionKnight in forum Tech Board
    Replies: 0
    Last Post: 08-17-2006, 12:17 PM
  2. Problems upgrading to latest Platford SDK
    By cloudy in forum Windows Programming
    Replies: 2
    Last Post: 02-14-2006, 04:48 PM
  3. Directx 8 or 9
    By silk.odyssey in forum Game Programming
    Replies: 12
    Last Post: 06-18-2004, 05:53 PM
  4. DirectX 8 with Borland
    By Tommaso in forum Game Programming
    Replies: 11
    Last Post: 08-12-2003, 09:30 AM
  5. DirectX problems
    By Silvercord in forum Tech Board
    Replies: 2
    Last Post: 06-29-2003, 06:02 PM