I have some code that's not working, the problem is that
the CreateWindow line reads and error saying "invalid
group handle" I have no idea what the problem is.
the CreateWindow line reads and error saying "invalid
group handle" I have no idea what the problem is.
Graphics 640,480 ;Images point=LoadImage("Point.bmp") ;Fonts Global Cooper1fnt=LoadFont("Cooper Black",48,False,False,False) Global Cooper2fnt=LoadFont("Cooper Black",36,False,False,False) ;Events Const X_HIT=$803 Const APP_SUSPENDED=$2001 Const APP_RESUMED=$2002 ;Variables, things that'll change while the programs running Global iDesktopWidth=ClientWidth(Desktop()) Global iDesktopHeight=ClientHeight(Desktop()) ;Constants Const MAINWINDOW_WIDTH=420 Const MAINWINDOW_HEIGHT=320 Const MAINWINDOW_SETUP=42 While Not KeyDown(1) SetFont Cooper1fnt Start() Wend Function Start() Main=CreateWindow("Stock Tracker 1.0",(iDesktopWidth-MAINWINDOW_WIDTH)/2,(iDesktopHeight-MAINWINDOW_HEIGHT)/2,MAINWINDOW_WIDTH,MAINWINDOW_HEIGHT,True,MAINWINDOW_SETUP) MainMenu=CreateMenu("Create",MainMenu,Main) End Function