I posted this problem in the Dark GDK.net area, but was told to try posting it here.
I am trying simply read my desktop resolution, and then force my app to run fullscreen at that resolution. I am trying to accomplish this using the DarkGDK.net.
This function works flawlessly on my PC when I am using Dark Basic Professional, so I seriously doubt there is an issue with the core DLLs, but here is my code in VS2008 with Visual Basic.
Dim cm As Boolean = DarkGDK.Display.CheckDisplayMode(1680, 1050, 32)
If cm Then
DarkGDK.Display.SetDisplayMode(1680, 1050)
DarkGDK.Core.Sync()
End If
Dim SW As Integer = Display.ScreenWidth
Dim Sh As Integer = Display.ScreenHeight
The variable "cm" equates to true when I use .CheckDisplayMode, but then DarkGDK.Core.Sync() triggers a memory violation error.
And when I check the Display.Screenwidth, it returns 640 and Display.Screenheight returns 480, regardless of my display resolution.
Any ideas?
Russell B. Davis/aerostudios