   DirectX testing
  Hello everyone, today I downloaded DirectX sdk (feb 2010) and will begin learning DirectX 9 programming, i linked include and library folders in tools-options from vs 2008 express, wrote some testing code in win32 app , but I got 6 errors in two lines(4th and 5th) :(#include <d3d9.h>#include <d3dx9.h>DIRECT3D9 D3D = NULL;DIRECT3DDEVICE9 D3Dd = NULL;error C2146: syntax error : missing ';' before identifier 'D3D'error C4430: missing type specifier - int assumed. Note: C++ does not support default-interror C4430: missing type specifier - int assumed. Note: C++ does not support default-interror C2146: syntax error : missing ';' before identifier 'D3Dd'error C4430: missing type specifier - int assumed. Note: C++ does not support default-interror C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  You probably meant LPDIRECT3D9 and LPDIRECT3DDEVICE9 instead of DIRECT3D9 and DIRECT3DDEVICE9.   ;  Are you sure you have the types right? Shouldn't it be (e.g.) LPDIRECT3D9 or something of that sort?   ;  I dont know, Im just starting to learn, and got no idea what this code does, i pick it up from internet for testing purposes   ;  it didnt worked, still got that 6 errors...   ;Quote:it didnt worked, still got that 6 errors...Post your revised code. (I'd also suggest reposting the errors, just in case there are differences relative to the first round of errors that you might not have noticed.)   ;  It works! Firstly i wrote LDIRECT... , but not LPDIRECT..., but now it works, thanks :)   