ddrval = DirectDrawCreate( NULL, &t_ddraw, NULL );
if ( ddrval != DD_OK ) //Was there an error
{
}
ddrval = t_ddraw->QueryInterface( IID_IDirectDraw7, (LPVOID*)&lpDD );
if ( ddrval != DD_OK ) //Was there an error
{
}
ddrval = t_ddraw->Release();
if ( ddrval != DD_OK ) //Was there an error
{
}
So it creates a DirectDraw object, then queries the DirectDraw7 interface. But then I''ve seen people just use the DirectDrawCreateEx? What should I use?
Thanks,
Ben
__________________________
Mencken's Law:
"For every human problem, there is a neat, simple solution; and it's always wrong.""Computers in the future may weigh no more than 1.5 tons." - Popular Mechanics, forecasting the relentless march of science in 1949