Original Post
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..