Jump to content
  • Advertisement

Archived

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

dha^zynd!kate

Need help whit DD7

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

why?? Compiling... dd.cpp C:\Cpp\temp\dd.cpp(35) : error C2146: syntax error : missing '';'' before identifier ''lpDD'' C:\Cpp\temp\dd.cpp(35) : error C2501: ''LPDIRECTDRAW7'' : missing storage-class or type specifiers C:\Cpp\temp\dd.cpp(35) : fatal error C1004: unexpected end of file found Error executing cl.exe. noname.exe - 3 error(s), 0 warning(s) here some code;;; // INCLUDES #define WIN32_LEAN_AND_MEAN #include #include #include #include #include #include #include #include //DirectX #include #include "dd.h" // DEFINES // MACROS // PROTOTYPES // EXTERNALS extern HWND main_window_handle; // spara fönster handtaget extern HINSTANCE main_instance; // spara instansen(instance) // GLOBALS LPDIRECTDRAW7 lpDD = NULL; LPDIRECTDRAWSURFACE7 lpDDSPrimary = NULL; LPDIRECTDRAWSURFACE7 lpDDSBack = NULL; DDSURFACEDESC2 ddsd; DDSCAPS2 ddscaps; im trying to do somekind of a engine,, so this is the DirectDraw-cpp file..

Share this post


Link to post
Share on other sites
Advertisement
Your compiler is probably using old directx header files. What you need to do is to make sure that the ones that come with DXSDK7 is found first. In VC++ you can do this under Tools->Options->Directories.

In the DirectX help file you can find information on how to compile programs with DXSDK7. (Introducing DirectX Foundation->C and C++ Programming Topics->Compiling DirectX Samples and Other DirectX Applications).

WitchLord

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!