Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to embed a DOS window in a VFP form.
Message
From
20/01/2001 04:50:44
 
 
To
19/01/2001 04:47:15
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00465592
Message ID:
00466131
Views:
17
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform