I am following a Direct3D example which comes with the Windows Mobile 5 SDK. It is written for Win32 and I wish to use it on a MFC application.
The following:
LPDIRECT3DMOBILE g_pD3DM = NULL;
// Used to create the D3DMDevice
if
( FAILED( g_pD3DM->CreateDevice( uAdapter, D3DMDEVTYPE_DEFAULT,hWnd,0,&d3dmpp, &g_pd3dmDevice ))){
blah blah
}
will not compile under MFC as it says:
error C2065: 'hWnd' : undeclared identifier
How do I use this function with MFC
Thanks
Harry