Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running a compiled EXE program with no screen display
Message
De
01/11/2004 23:27:53
 
 
À
01/11/2004 23:06:20
Arden Weiss
Liberty Computers Ltd.
Maryland, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows 2000
Database:
Visual FoxPro
Divers
Thread ID:
00956844
Message ID:
00956846
Vues:
10
>Want to have a VFP program run so that there is no on-screen display of any kind.
>
>I have created an EXE that does not display anything to the VFP screen, but the VFP screen itself gets displayed while the program is running during the inkey(5) period of time. Program shown below:
>
>set console off
>set talk off
>=inkey(5)
>quit
>
>But I do not know what settings to included so it can be run in the background to process data with no screen presence whatsoever -- is this possible, and if so, how.

You can include SCREEN=OFF in a CONFIG.FPW that you bind into your .EXE.

As for "no screen presence" there are a couple of options:

1. Truly no screen presence i.e. run as a "service". This will probably be easier if you are running under the NT family rather than W98/Me. You can search various threads here for how to do this. Other resources:

Make Visual FoxPro run as a service on Windows NT FAQ #7636
Re: Creating a service Thread #952970 Message #952978
Re: Running .exe as a service Thread #639852 Message #639994
Re: Launch as a service Thread #828642 Message #828861

2. Another option is to make your app run with an icon in the system tray, so the user can more easily bring up status etc. if necessary. IIRC there is a class in the FFC that can do this; otherwise take a look at bbSysTray -icons on 9x/NT/2k/XP system tray File #9318
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform