Original Post
Hi there, I''m having a very strange problem. The top of my code file looks like this:
And as you can see I''m re-writing my game engine from assembler to C++ because I couldn''t get Network and D3D running properly in assembler without hundreds of hours of effort (Just to get it running let alone building the engine!) So anyhow I get the following error:
e:\epsilon\d3d.cpp(16) : error C2146: syntax error : missing '';'' before identifier ''lpD3D''
e:\epsilon\d3d.cpp(16) : error C2501: ''LPDIRECT3D7'' : missing storage-class or type specifiers
e:\epsilon\d3d.cpp(16) : fatal error C1004: unexpected end of file found
Where line 16 is the obvious declaration for lpD3D.
I also get this same error with my DDraw init stuff.... I never did before, and I''ve already had this running, what''s wrong?
FYI I''m building an isometric engine w/ DDraw and D3D for acceleration... If your wondering why I have both sets of includes...
Thanks,
Ben
#include <windows.h>
#include <math.h>
#include <time.h>
#include <stdio.h>
#include <ddraw.h>
#include <dinput.h>
#include <d3d.h>
#include <d3dtypes.h>
//#include <dsound.h>
#include "Prototypes.h"
#define D3D_OVERLOADS
LPDIRECT3D7 lpD3D = NULL;
LPDIRECT3DDEVICE7 lpDevice = NULL;
|