• Advertisement

Archived

This topic is now archived and is closed to further replies.

D3D7 app exits without error when I try to set the viewport...

This topic is 6597 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I''m trying to write a baisc D3D7 app, all it does right now is initialize a blank frame. The problkem is that the program loads, creates a window, and then closes down without an error. I used an infinite loop ( while(1) ) to debug the app and have located the point of exit. It seems that the statemendt "D3DDevice7->SetViewport ( &VP );" is what is exiting the code. D3DDevice7 is my LPDIRECT3DDEVICE7 object and VP is an object of D3DVIEWPORT7. I''ve initialized VP with the statment "D3DVIEWPORT7 VP = { 0, 0, 800, 600, 0.0f, 1.0f };" and I''ve created the D3D device looks like this "D3D7->CreateDevice ( IID_IDirect3DHALDevice, Backbuffer, &D3DDevice7 );". I can''t figure out why the program would just shut down like that. Any help would be greatly appreciated. -Daedalus

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement