Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Launch an EXE within a FoxPro Window
Message
 
À
09/07/2009 14:38:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01411225
Message ID:
01411237
Vues:
63
>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]) && You should know exact caption of the command window
? lnHwnd
SetParent(lnHwnd,_screen.HWnd)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform