Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Launch an EXE within a FoxPro Window
Message
De
13/07/2009 23:01:49
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
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:
01412113
Vues:
59
>>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)
>
The exact caption of the command window is getenv("comspec"). But the window still looks soooo dosssy...

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform