Jump to content
  • Advertisement

Archived

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

DS

Visual C++ 6 Standard: DirectX 7: DirectDraw: Samples

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

When I try to compile the DirectDraw Wormhole sample I get this: --------------------Configuration: wormhole - Win32 Debug-------------------- Compiling... wormhole.cpp F:\dx7sdk\samples\Multimedia\DDraw\src\Wormhole\wormhole.cpp(64) : error C2146: syntax error : missing '';'' before identifier ''g_pDD'' F:\dx7sdk\samples\Multimedia\DDraw\src\Wormhole\wormhole.cpp(64) : error C2501: ''LPDIRECTDRAW7'' : missing storage-class or type specifiers F:\dx7sdk\samples\Multimedia\DDraw\src\Wormhole\wormhole.cpp(64) : fatal error C1004: unexpected end of file found Error executing cl.exe. wormhole.exe - 3 error(s), 0 warning(s)

Share this post


Link to post
Share on other sites
Advertisement
It sounds like you have forgotten to tell Visual Studio where the headerfiles are. Because an older version of DirectX SDK comes with the compiler it doesn''t give you the error ''failed to include ddraw.h''. You have to go to menu option Tools->Options and then click on the Directories tab and there add the location of the DXSDK7 header files and libraries. Make sure you move their locations to the top of the list so that they will be found first.

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!