Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Can't use Direct3D7 with the DirectX8 SDK!

This topic is 6486 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m trying to recompile a program I had been working on that uses Direct3D7. But now that I''ve installed the DirectX8 SDK, d3dvec.inl is making tons of errors. D3D_OVERLOADS is defined. What the hell is going on? I can''t run my program now! ~CGameProgrammer( );

Share this post

Link to post
Share on other sites
Well, OK, I figured it out: dsound.h defines D3DVECTOR among many other types, and so does d3dtypes.h. There are #ifdefs to prevent the types from being declared twice, but the dsound versions don''t have all the overloaded operators, thus causing every line in d3dvec.inl to generate an error.

Bottom line: You can''t use previous versions of DirectX with the DX8 SDK installed, unless you omit dsound.h from your program (or, conversely, use dsound but omit d3d). Microsoft should have created a dsound8.h file for DX8, but they did not, which was stupid.

~CGameProgrammer( );

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!