Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run a DOS program on a page of a pageframe?
Message
From
04/12/2001 13:13:33
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00586698
Message ID:
00589397
Views:
23
>Evan,
>
>I'll have to do some playing later tonight, this should be possible with some WinAPI calls to position the window and keep it on top of the VFP app. When you switch pages you'll have to not OnTop that window.
>

You might be able to create a Console and inherit it as the Console of the child process; you could then create an ActiveX control in VB that would serve as a host to the Console hWnd. See my FAQ postings on directing VFP output to a console; you could use CreateProcess to force the DOSApp to inherit a console for STDOUT throuhg CreateProcess, set in the STARTUPINFO structure passed to CreateProcess(). I haven't tried it, and it doesn't pique my interest to do, but the code I offer in the FAQ might be a good starting point.

Standard disclaimer - you change the code and it breaks, you own both pieces.

>>Correct. I have a DOS program I need to show in a window/control "on" a VFP page in a VFP pageframe (most of the other pages will have instances of the MS Web Browser control, pointing at different URL's).
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
Reply
Map
View

Click here to load this message in the networking platform