Original Post
Hey, i recently found out why my codes never work.
They fail on every directx function!
EG:
returns false.
How can i see the erro code?
They fail on every directx function!
EG:
IDirect3DSurface9* surface = NULL;
D3DXIMAGE_INFO imageInfo;
if(FAILED(D3DXGetImageInfoFromFile(fname,&imageInfo)) &&
FAILED(DX::g_pd3dDevice->CreateOffscreenPlainSurface( imageInfo.Width,imageInfo.Height,imageInfo.Format,D3DPOOL_DEFAULT,&surface,NULL)) &&
FAILED(D3DXLoadSurfaceFromFile(surface,NULL,NULL,fname,NULL,D3DX_DEFAULT,0,NULL)))
return(false);
return(true);returns false.
How can i see the erro code?