General information
Category:
Forms & Form designer
>I have an application that runs fine as a .app file, but if I build it as an .exe file it doesn't work. I launch the program and it flashes and then terminates. Any sugestions?
You need to put the EXE in a wait state, either with a READ EVETNS (and a CLEAR EVETNS to kill it) or a Modal form. An example of the Main PRG coujld look like:
oApp = createobject('MyApp') && Create the AppObject
_screen.caption = 'My App'
do mymenu.mpr
oToolBar = createobject('MyAppToolBar')
READ EVENTS
* This code is fired on the way out
modi window screen
set sysmenu to default
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only