Skip to main content
GameDev.net gamedev.net
🔒 Locked

ddraw.h

Started by RichS Oct 31, 2000 at 12:10 PM 6 replies 350+ views
Original Post
RichS
RichS
I have the book Teach yourself DirectX7 in 24 hours. I am trying to compile a sample project using MSVC++ 6.0. I get a compile error because it can''t find the definition "LPDIRECTDRAW4". I think it is in ddraw.h. The version of ddraw.h is; "Copyright (C) 1994-1997 Microsoft Corporation". It is in the ..\VC98\include directory. Where do I get an updated version of this header file? And are there other headers that need updating? Thanks, RichS
Staffan
Staffan
VC++ 6 comes with DX 5 actually. Anyways, you can get the latest DirectX SDK libs and headers, version 7 as we "speak", from Microsoft''s website. These aren''t that big...header + libs + docs is less than 10 mb I''m sure.

"Paranoia is the belief in a hidden order behind the visible." - Anonymous
Staffan
Staffan
Suddenly a even better idea struck me...install the SDK from the CD that hopefully came with the book It MUST be on it...perhaps not the latest version but a version new enough to compile the code within the book.

"Paranoia is the belief in a hidden order behind the visible." - Anonymous
punkfloyd
punkfloyd
In addition to this don''t forget to add the DirectX libs into your project file. They are in the lib folder inside your SDK folder. What exactly you need to include depends on what parts of DirectX you are using.

Usually you''d want to have at least ddraw.lib and d3dx.lib but you might also need the other ones as well.

OD
RichS
RichS

Thanks, I found my problem.

RichS

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.