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

Need help whit DD7

Started by dha^zynd!kate Apr 23, 2000 at 10:27 AM 0 replies 650+ views
Original Post
dha^zynd!kate
dha^zynd!kate
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..
// dha^zynd!kate
WitchLord
WitchLord
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
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - <a href="http://www.angelcode.com/tower" rel

Topic Locked

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

Sign in to reply to this topic.