>>Our Warehouse Management System (WMS) uses MS SQL 6.5 as back-end. The basic system is a normal Widows GUI. However, the receiving screen appears to be a DOS command screen that is compiled to a EXE and runs all sorts of stored procedures on the server. I can launch this DOS screen(exe) from within my FoxPro code without any problems but it opens up in a separate DOS window as you would expect. However, I would like to force the DOS window to be locked inside a FoxPro form/window. In other words if you move the FoxPro form/window the DOS screen would move with the form. Has anyone ever done anything like this or does anyone know if it is even possible?
>>
>>Thanks,
>>
>>Robert Wright
>
>Very rough example:
>
>Declare Long FindWindow In WIN32API String, String
>DECLARE INTEGER SetParent IN WIN32API INTEGER hWndChild, INTEGER hWndNewParent
>DECLARE INTEGER Sleep IN WIN32API INTEGER
>
>RUN/N cmd
>Sleep(1000)
>lnHwnd = FindWindow(NULL,[C:\WINDOWS\system32\cmd.exe])
>? lnHwnd
>SetParent(lnHwnd,_screen.HWnd)
>
The exact caption of the command window is getenv("comspec"). But the window still looks soooo dosssy...