Original Post
Hi all.
What is my wrong in this code ?
HRESULT hr;
LPDIRECTDRAW7 lpDD;
hr = DirectDrawCreateEx(NULL, (void **)lpDD, IID_IDirectDraw7, NULL);
if(FAILED(hr))
{
MessageBox(hWnd, "Error in running program !!!", "Error ...", MB_ICONERROR);
return FALSE;
}
I include ddraw.h to stdafx.h and i link ddraw.lib and dxguid.lib to my project, but ...
Please help me ...
Hadi Rezaie