Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to compile proj into .app extension
Message
De
23/10/1999 17:08:42
 
 
À
23/10/1999 08:18:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00280402
Message ID:
00280460
Vues:
12
>How to compile stock proj into stock.app extension therefore i can call stock.app in the account instead of !run stock.exe

In the build dialog, simply tell the compiler to create an Application (.APP) rather than a Win32 .EXE by clicking on the correct item in the top part of the dialog.

Realize that if STOCK.APP does anything like a QUIT or CANCEL, it applies to the VFP session it runs in - it won't go back to the calling program. If it closes tables, clear memory variables or changes environmental settings, returning to the calling app won't restore the state.

>Anyone can tell how to do it or if cant do in stock.app Can i call !run stock.exe without the dos background appear....

If you don't want to see the DOS box, you have several choices. If your app need not wait on the stock.exe to complete before continuing, using one of the /N command line switches with RUN may do what you want - RUN without a /N starts a new command processor (a DOS session) and then fires the application.

You can also use the ShellExecute class that's a part of the VFP6 FFC to run it.

If you need to wait for stock.exe to terminate before you continue, your best bet is to use an API call to launch it - my API_APPRUN class will do this for you - it can be downloaded from here on UT in the Files section. This uses the CreateProcess() API call. The ShellExecuteEx() API call can also wait on temrination if you want to write your own code using the API.

If your target systems all have the Windows Scripting Host on them (Win98, Win2K and systems with IE4 or later all have it - you can also download a self-installing executable from msdn.microsoft.com/scripting which will load the WSH on any system with WinNT SP3 or later installed, or retail Win95 systems that have at least SP1 or are one of the OSR 2 or later OEM version) you can use the Wscript.Shell automation object's RUN method to fire a DOS or WinApp; the Run method accepts an optional argument to tell it to wait for the application it runs to terminate.
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