Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to embed a DOS window in a VFP form.
Message
De
20/01/2001 04:50:44
 
 
À
19/01/2001 04:47:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00465592
Message ID:
00466131
Vues:
15
>Hi,
>
> I once saw a VB app that had a DOS window embeded on one of it's forms. Is it possible to do the same in VFP?. If so, how?
>

Not really - you could create a console for VFP using AllocConsole(), and then launch an instance of the command processor that inherited the VFP-owned console, but there's no easy way to embed the window for the console inside a VFP form and have both VFP and the DOS console app share ownership of the console window. You might consider a console window emulator that launched console commands via RUN and attached the StdIn and StdOut handles to let VFP pipe strings to the DOS command, and have the DOS command pipe it's output to a VFP Window - you might play with the FAQ #7932 entry on sending VFP output to a console as a start point.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform