DirectDraw 9.0b windowed mode (c#) problem ...

knotree

Newcomer
Hello,
My code only works in FullScreenMode when I try to go in normal mode (windowed) I've got a DDEER_NOEXCLUSIVEMODE eXception !!
I use c# and DX9.0b
here is the code listing:

dddevice=new Device(Microsoft.DirectX.DirectDraw.CreateFlags.HardwareOnly);
// Creating Device Object

dddevice.SetCooperativeLevel(this,CooperativeLevelFlags.Normal);

If anyone have an idea ...

K.
 
Are you ALT Tabbing out ouf fullscreen mode into windowed mode? or just trying to start in a window.

I assume it's the former in which case you will loose the device and the primary surface on the swap, I don't know how you are supposed to handle that in managed DX, but I'd assume you register a function just like you do for textures.

Sorry can't be of more help
 
You probably have to reset the device, you probably have invalid present parameters for windowed mode.

But I'm just guessing since you've provided very few details.
 
Thanks a lot for your involvment
I've got the response !!!

It is impossible to be in windowed mode with two Surfaces and flipping between them. It is true that I don't have provided many details :rolleyes:

thanks again

K.
 
Back
Top