Archived

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

DirectX problems....

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

Hi to everyone, I have one project written in C++/DX. When I try to run it I got an error. Error: "c:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(126) : fatal error C1083: Cannot open include file: ''ddraw.lib'': No such file or directory" In my "Include files" dialog I have this: C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\LIB\DDRAW.LIB C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\MFC\INCLUDE C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE C:\LIB_SDL\SDL-1.2.5\INCLUDE BTW. I think I dont have DirectX SDK installed. I have installed only Visual C++ 6.0 and MSDN Library. Greetings, Nebo

Share this post


Link to post
Share on other sites
The include list is a list of directories that have *.h files in them. Theres a library list of directories, this is where you should put your directories that have any *.lib files in. You don''t specify specific *.lib files in here though, you put them in the Link section of your project settings.

---------------------------------------

Let''''s struggle for our dream of Game!

http://andrewporritt.4t.com

Share this post


Link to post
Share on other sites
You have to link it. What you have done is just give the compiler another directory it can look into. I can't remember how it was done in VC6 but you should be able to find it in the project options.

Since you think you don't have the DX SDK installed, go download it and install it because the DX which ships with VC98 is very very old.

[edited by - GamerSg on November 12, 2003 6:31:18 AM]

Share this post


Link to post
Share on other sites
"c:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(126) : fatal error C1083: Cannot open include file: ''ddraw.lib'': No such file or directory"
what the hell is that? it looks like afxv_w32.h wants ddraw.lib? is that even possible? probaly if thats the error actualy . . . is that a file that you made? or is it something else?

you probaly should add ddraw.lib to the project. thats the only usefull thing i can say

Share this post


Link to post
Share on other sites
if you do have the SDK installed, edit your include list to look like this:

C:\DIRECTXSDK(or whatever the file is called)\INCLUDE
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\MFC\INCLUDE
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE
C:\LIB_SDL\SDL-1.2.5\INCLUDE

Make sure it is at top

Share this post


Link to post
Share on other sites