Setting up VC++ 6 for DirectX

Started by
10 comments, last by GameDev.net 24 years, 3 months ago
I'm sorry to ask this, I know it's probably been asked a thousand times, and I looked but found no answers. I know there are hundreds of documents that give this information, and I looked but found none that worked for me.

I used to use Borland C++, I liked it, things worked, etc. Well I got Visual C++ 6.0 recently, and I really really really like it. But I can't get directx programs to compile correctly. Here's what I do. I create a new workspace and add all the code. Then I go into Tools->Options, click the directories tab, and set both the Include files and Library files for directx. Next I go into Project->Settings and click on the link tab. I then enter in the names of the proper libraries to the Objects/library modules text box. When I try to compile, however, I get errors like:

error C2146: syntax error : missing ';' before identifier 'ddraw'

error C2501: 'LPDIRECTDRAW4' : missing storage-class or type specifiers

fatal error C1004: unexpected end of file found

Please help me solve this problem.

Advertisement
Hey man, that solved the problems! Thanks alot! BTW, Erick, if you're using MSVC++ then just scroll up to my original message to see how to set the paths.

This topic is closed to new replies.

Advertisement