Hi all, I may be missing something but I am used to having a WINMAIN or PBMAIN entry point to an app.
I have been hunting the help all night and cannot find an equivalent, is the first proc in an app considered the entry point?
Cheers,
BOB
enrty point
Re: enrty point
Code: Select all
Procedure Main()
;Any code
EndProcedure
Main()
sorry for my bad english
Re: enrty point
What u write first gets executed first.
Code: Select all
EnableExplicit;<- always use this!
Procedure.i Something()
Debug "-> SOMETHING!"
EndProcedure
Procedure.i Main()
Debug "MAIN!"
Something();<- call Something() from Main()
EndProcedure
Main();<- lets execute Main()
End;<- properly end
Re: enrty point
The code starts directly in global space:KiwiBob wrote:I have been hunting the help all night and cannot find an equivalent, is the first proc in an app considered the entry point?
Code: Select all
OpenWindow(0,0,0,800,600,"Window",#PB_Window_ScreenCentered|#PB_Window_SystemMenu)
Repeat
Until WaitWindowEvent()=#PB_Event_CloseWindow