Sign in to follow this  

Force a game to run in windowed mode

This topic is 4089 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 all has someone here got a sample to force a game running in dx8 fullscreen to windowed mode ? thanks for any help. [Edited by - billou on September 30, 2006 10:33:42 AM]

Share this post


Link to post
Share on other sites
You could try hooking into the D3D8 API, much in the same way that Muhammad Haggag did in his Hooking D3D9 sample.

You would want to probably hook CreateDevice() and Reset(), and modify their presentation parameters to ensure that windowed mode is selected.

Share this post


Link to post
Share on other sites
Yes, the language kind of makes a difference.

C++ the SDK has examples.

VB6 (very few examples in MS docs and online) I had alot of trouble -- you have to put the DirectX object in a seperate form that you can hide/show and destroy/create the DirectX objects each time you transition (I tried various other ways that didnt work).

Share this post


Link to post
Share on other sites
Quote:
Original post by billou
d3d9 is a way too different than d3d8...can someone help me to convert the d3d9's code to d3d8... ?

thanks.

All you have to do is follow along with what that sample does. Just created your own version of IDirect3DDevice8 by inheriting from it and making pass-through functions for each corresponding native call. It's a lot of boring work (since IDirect3DDevice8 has a lot of members), but it is very straighfoward.

Share this post


Link to post
Share on other sites

This topic is 4089 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this