Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement