Original Post
I am trying to set my cooperative level for directX. It keeps failing.Here is part of my code.
HRESULT ddrval;
ddrval=lpdd->SetCooperativeLevel(MWH,DDSCL_EXCLUSIVE / DDSCL_FULLSCREEN / DDSCL_ALLOWREBOOT);
if(ddrval!=DD_OK)
{
GameState=GSSHUTDOWN;
}
When I run the program it errors out with exclusive and fullscreen. However when I put it to normal it is fine.
Any ideas on why this is happening?