Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
EXE terminates
Message
De
28/06/2000 17:02:10
 
 
À
28/06/2000 16:56:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00386111
Message ID:
00386116
Vues:
21
>VFP 6.0
>
>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?

Sounds like you need a READ EVENTS to provide a wait state point after launching your main menu/modeless form. This is discussed extensively in the FAQ. Your main line of code, assuming that you launch a main menu and then expect to wait for user input, would look something like:

*
* Yadda, yadda, yadda
*
DO MyMainMenu.MPR
READ EVENTS
*
* Mumble, mumble, shutdown code
*

To exit from your app, you issue a CLEAR EVENTS. See the FAQ for a more detailed discussion.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform