Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Quitting to another application
Message
De
05/03/2009 18:28:32
 
 
À
05/03/2009 15:33:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01385741
Message ID:
01386045
Vues:
56
>>>>Maybe I lead you into confusion, Tore. You said "if you want to replace the running program", and I clarified that I never wanted to do that, because I know it cannot be done. I want to replace a program that calls another, not a program that is running. The caller is the main program, it's the callee that will perform the replacement.
>>>>
>>>>I thank you for all your remarks.
>>>
>>>So to use my earlier terms, you want the "main" program to replace the "loader"?
>>
>>Antonio wants to launch Updater from the main program and quit the main program. The Updater will replace the main program and start it again.
>
>OK. Wouldn't this pseudocode work:
>
*Main.exe
>Shellexecute Updater
>quit
>
*Updater
>Do killMain && Sergey's code to make sure that Main.exe is removed from memory
>Copy file newmain.exe to main.exe
>Shellexecute Main
>quit
Yes, this sums it quite well.
----------------------------------
António Tavares Lopes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform