Jump to content
  • Advertisement


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


Visual C++ 6.0 and DirectX7

This topic is 6918 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


That's fine when it gives you that message, just let it do it's thing.

What you have to realize is exactly what Dragun said. There are DX headers and libraries in the VC++ include and lib folders.
You can either overwrite these or even better you can setup VC++ to look in your DX SDK folders first.

In VC++ do this:
Show Directories for 'Include files'
Either click the New icon or click into the bottom first empty slot
click the "..." ellipses and point it to the Include folder of your DX SDK
Now with that new entry selected, hit the Up arrow to move it to the top of the list ( so it gets checked first )
Show Directories for 'Library files'
do the same as above, but find the Lib directory



[This message has been edited by Keebler (edited December 08, 1999).]

[This message has been edited by Keebler (edited December 08, 1999).]

Share this post

Link to post
Share on other sites
The DirectX SDK 7.0 example sources won't fit in my Visual C++ 6.0 ! When I choose "open workspace" for the examples, the program throws an alert box saying that the project was done using an earlier version of Visual Studio, and asks if I want the project CONVERTED into the new version. No matter if I convert or not, the examples won't compile without errors.

Here's a log for compiling ddex1 (DirectDraw example 1) after I converted it:

Compiling resources...
d:\mssdk\samples\multimedia\ddraw\src\ddex1\ddex1.cpp(39) : error C2146: syntax error : missing ';' before identifier 'g_pDD'
d:\mssdk\samples\multimedia\ddraw\src\ddex1\ddex1.cpp(39) : error C2501: 'LPDIRECTDRAW7' : missing storage-class or type specifiers
d:\mssdk\samples\multimedia\ddraw\src\ddex1\ddex1.cpp(39) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

ddex1.exe - 3 error(s), 0 warning(s)

Has anyone a clue what might be wrong? The compiled .exe examples work just fine. It's kind of hard to get my own game projects started when even the ready-made examples won't compile..


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!