Was changing this line...
`set display mode desktop width(),desktop height(),32
set display mode 1024,768,32
...the only thing you did? If so, then my theory is that DBPro is not correctly detecting your desktop resolution and is setting it incorrectly (probably to something really big or really small, even zero perhaps). I don't know why this would make the window invisible but clearly it does.
I am using the latest version of DBPro (the same as yours, I think).
To test, use this code and tell me what the printout says:
Rem Project: Dark Basic Pro Project
Rem Created: Tuesday, December 13, 2011
Rem ***** Main Source File *****
sync on
sync rate 0
autocam off
//hide mouse
`set display mode desktop width(),desktop height(),32
set display mode 1024,768,32
sync
global debug=0
global currentcard$=0
make object box 101,5000,1,5000
for i=1 to 50
make object cube i,10
position object i,0,i*30,0
color object i,rgb(0,255,0)
next i
position camera 0,150,-350
point camera 0,0,0
set camera range 0.1,10000
do
set cursor 0,0
if debug=1
print "--Debug Information--"
print "Graphics card: ";currentcard$
print "Frames per second: ";screen fps()
print "Camera position, x: ";camera position x();" y: ";camera position y();" z: ";camera position z()
print "Camera angle, x: ";camera angle x();" y: ";camera angle y();" z: ";camera angle z()
print "Object position(2), x: ";object position x(2);" y: ";object position y(2);" z: ";object position z(2)
print "Object angle(2), x: ";object angle x(2);" y: ";object angle y(2);" z: ";object angle z(2)
print "--Variables--"
print ""
endif
print "Click the left mouse button to reverse the gravity of an object"
print "Push the mouse cursor against the sides of the screen to turn"
print "Use the arrow keys to move"
print ""
print "Desktop width: ";desktop width();", desktop height: ";desktop height()
for i=1 to 50
if object position y(i)>100
color object i,rgb(0,255,0)
endif
next i
if mousex()<5 then yrotate camera camera angle y()-1
if mousex()>(screen width()-5) then yrotate camera camera angle y()+1
if mousey()<5 then xrotate camera camera angle x()-1
if mousey()>(screen height()-5) then xrotate camera camera angle x()+1
if upkey()=1 then move camera 5
if downkey()=1 then move camera -5
if leftkey()=1 then move camera left 5
if rightkey()=1 then move camera right 5
sync
loop
Clonkex