Original Post
Hi Everyone, I have gotten the code to render the video in a different window (Active MOvie window) up and running. (thanks to help i got from toymaker.com) I am trying to render video in the same window as my game but the following call fails.
if(FAILED(pVW->put_Owner((OAHWND)hWnd)))
return E_FAIL;
this is the initialization of present parametres.
d3dpp.Windowed = TRUE;
d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD;
d3dpp.BackBufferFormat = d3ddm.Format;
d3dpp.EnableAutoDepthStencil = TRUE;
d3dpp.AutoDepthStencilFormat = D3DFMT_D16;
d3dpp.PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE;
// Create rendering device object
if( FAILED( g_pD3D->CreateDevice( D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd,
D3DCREATE_SOFTWARE_VERTEXPROCESSING,
&d3dpp, &g_pd3dDevice ) ) )
i am using the same handle to the window i dont know where i am going wrong. Help me out please. PS:- This is the first time i have posted code and have tried to do it the right way. if i have not posted it in the right way i apologize. Thank You.