Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running a .exe from within another .exe
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00094707
Message ID:
00094728
Vues:
26
>>>I am developing in VFP 3.0 on a W3.1 platform.
>>>
>>>I have 2 executables.
>>>
>>>If I run each .exe separately from Program Manager, I get two separate "Tasks" in the Task List and I can alt-tab between the two at will.
>>>
>>>If I run the second .exe from within the first .exe (using "do xyz.exe"), there is only one "Task" and exiting the second .exe also ends the first .exe because of the CLEAR EVENTS line.
>>>
>>>I would like to start the second .exe from within the first and have it be a completely seperate app within Windows.
>>>
>>>Any and all help would be greatly appreciated.
>>>
>>>Thanks,
>>>
>>>Rob
>>
>>I believe you need to use a Win32API function such as ShellExecute() or CreateProcess() from within your first EXE. George Tasker is da man for the Win32API stuff. Is this correct George?
>>
>>Bill
>
>Unfortunately, he's running under 16 bit Windows. However, the ShellExecute function does exist in Shell.dll, and there's also WinExec(). I don't think that I can be of more help than this, since I don't have a version of 3.1 available for testing. BTW, he'd have to used the old RegFN() and CallFN() functions in foxtools to do this.

Oops. Silly me. :-) It's Friday. ON SHUTDOWN TurnBrainOff()
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform