Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running an .exe inside an .exe
Message
De
04/10/1996 10:10:47
Paul Baker
Pacific Environmental Services, Inc.
Rtp, Caroline du Nord, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00009314
Message ID:
00009379
Vues:
27
>>>I have a vfp program (LBP.exe) that I want to run from within another vfp .exe (MAIN.exe). I have a form in Main.exe that has a command button with the click method set to:
>>> * -- stuff --
>>> do lbp.exe
>>> * -- stuff --
>>>
>>>when I run just the form (from the project) it goes and runs LBP, then when I exit LBP, it returns to Main. This is good... that's what I expect... When I compile Main and run Main.exe... clicking on the button starts LBP AND THEN CLOSES LBP and returns me back to main. What's happening???? The reason I have two .exe's is because LBP.exe has to stand alone... MAIN.exe is an umbrella program that will eventually call more .exe's.
>>>
>>>Am I missing something here??? Any help is greatly appreciated.... thanks...
>>
>>I never run a VFP exe from other VFP exe. Anyway, you can try the RUN command (same thing as "!" command). And you maybe need to do it using a pif file (from the pif file you can set memory, graphics, etc. requirements).
>>
>>Vlad
>
>
>if they are two separate .exes, you'll need to have a read events in each...

Thanks.. it works with '! /n', but it starts a new session of VFP.. to slow... I do have a read events in each .exe.... Should I class the LBP.exe and instantiate it from main???? That's something else I don't know how to do... any suggestions on doing this??? thanks..
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform