Original Post
Hey, I just go into direct x in my book. Well almost
everything works fine except a few things. this is my code:
int Game_Main(void *parms = NULL, int num_parms = 0)
{
// this is the main loop of the game, do all your processing
// here
LPDIRECTDRAW lpdd7 = NULL;
LPDIRECTDRAW lpdd = NULL;
DirectDrawCreate(NULL, &lpdd, NULL);
if(FAILED(DirectDrawCreate(NULL, &lpdd, NULL)))
{
//error
} // end if
if(FAILED(lpdd->QueryInterface(IID_IDirectDraw7, (LPVOID *)&lpdd7)))
{
//error
}
// return success or failure or your own return code here
return(1);
} // end Game_Main
My erroes are: C:\Documents and Settings\Ryan Gibson\Desktop\test2\test2.cpp(47) : warning C4101: ''buffer'' : unreferenced local variable
C:\Documents and Settings\Ryan Gibson\Desktop\test2\test2.cpp(103) : error C2065: ''IID_IDirectDraw7'' : undeclared identifier
Error executing cl.exe.
test2.obj - 1 error(s), 1 warning(s)
Can you please tell me what''s wrong? I put the paths in for dierct x.