Need help with compilation............

BlitzPlus Forums/BlitzPlus Beginners Area/Need help with compilation............

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

#6 -----------------------------------

You created a function that creates a window.. that's fine, but there was no need to make that Window_0 a global. Just create the window inside that function and return the handle..


Something like
LazyCrap=CreateMYwindow()
Notify LazyCrap ; <- this will show some number like 2193674
End

Function CreateMYwindow()
  stinkyfart=CreateWindow("o_O",0,0,640,480)
  stinkylabel=CreateLabel("O_o",32,32,128,32,stinkyfart)
  Return stinkyfart
End Function

Function CreateMYwindow2() ; alternative way.. if you don't need to add stuff to the window..
  Return CreateWindow("^_^",0,0,640,480)
End Function


#7 -----------------------------------
http://www.blitzbasic.co.nz/Community/posts.php?topic=42793

;)

#8 -----------------------------------

You didn't make an exit in that app .. how do you want to quit it if you're not running debugmode? :)
typical uniform main-loop..
Repeat
  Waitevent()
  If EventID()=$803 quit=true ; $803 -> window-close button / alt-f4

  ; your stuff here..
  ;

Until quit
End