Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EXE terminates
Message
From
28/06/2000 17:03:46
 
 
To
28/06/2000 16:56:49
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00386111
Message ID:
00386118
Views:
18
>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
Map
View

Click here to load this message in the networking platform