Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Close a 2nd VFP exe
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01242070
Message ID:
01242168
Vues:
19
A possible way this task can be accomplished: on exit application #1 sends a specified window message to application #2. Upon receiving this message, application #2 exits (VFP9 required).

On start application #2 must issue BINDEVENT with some of its window handles (_screen.HWnd, application.HWnd or form's HWND) to make that window message trigger a certain exiting procedure.

Somehow, application #1 must obtain the window handle of application #2. After having started, application #2 can pass this handle to application #1 using interprocess communication, for example a mailslot with predefined name or global atom.

* * *
Also consider DDE approach, when application #2 becomes DDE server and application #1 is DDE client.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform