Visual C++ 6.0 and DirectX7
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:
Tools
Options
Directories
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
HTH,
Keeb
[This message has been edited by Keebler (edited December 08, 1999).]
[This message has been edited by Keebler (edited December 08, 1999).]
Here's a log for compiling ddex1 (DirectDraw example 1) after I converted it:
code:Compiling resources...Compiling...ddex1.cppd:\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 specifiersd:\mssdk\samples\multimedia\ddraw\src\ddex1\ddex1.cpp(39) : fatal error C1004: unexpected end of file foundError 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..
-Alec-