![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
![]() |

|
| Programming Error ! Programming error messages |
![]() |
|
C# MDI forms in full-screen managed DirectX
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Fixed Error!
Posts: 4,202
Join Date: Mar 2007
Rep Power: 6
IM:
|
www.suvaonline.com/contractor/Fullscreen I know it's possible because of the function Device.SetDialogBoxes(true). But I can't figure out what is causing that method call to fail. |
|
|
|
|
|
|
|
|
#2 (permalink) |
|
Fixed Error!
Posts: 4,202
Join Date: Mar 2007
Rep Power: 6
IM:
|
1. try presentParams.presentFlag = PresentFlag.LockableBackBuffer (that's Microsoft.DirectX.Direct3D.PresentFlag.L Without that, I'm sure it'd always fail... 2. I'm not sure if you need to set DeviceWindow|DeviceWindowHandle, or if the Device creation infers that. You can check the PresentParams after the initialization of the device -- I believe -- as it should have 'filled in' fields. If Managed DX isn't auto-supplying a window based on the instantiation within a form/control, you'll have to supply one. That'd be another failure point. 3. AND again, I'll ask "What error is coming back? That's the first thing to look at." When you do try SDBM, and have it in a try/catch, what does the exception handler print out? It should refer to one of the possible error causes. |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|