Original Post
i am trying to set a macro to enable a resolution change using
a virtual key code. the code below is of directx6, but y do i have this error called "undeclared identifier: VK_1"?
and how do should i declare it, considering its a virtual key code?
if (KEY_DOWN(VK_1))
{
if (DirectDrawCreate(NULL,&lpdd,NULL)!=DD_OK)
return(0);
// set cooperation level to windowed mode normal
if ((lpdd->SetCooperativeLevel(main_window_handle,
DDSCL_ALLOWMODEX | DDSCL_FULLSCREEN |
DDSCL_EXCLUSIVE | DDSCL_ALLOWREBOOT))!=DD_OK)
return(0);
if ((lpdd->SetDisplayMode(800,600,32))!=DD_OK)
return(0);
}