Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Call foxpro for dos application
Message
De
08/10/2003 10:29:29
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00835062
Message ID:
00836218
Vues:
16
I tried createprocess but it would only work with 32bit apps. I use shellexecute to run a FPD26 app from within VFP8 (my exact code that is actually used is below):
* The app is profiler.app
* The app resides in \profiler\progs
* The FPD26 runtimes reside on the workstation's local hard drive in c:\foxpro
* I pass a command line to specify the location of the configuration file for the FPD26 app also and to run it using -t and +x

declare long ShellExecute in "shell32.dll" long hwnd, string lpszOp, ;
                    string lpszFile, string lpszParams, ;
                    string lpszDir, long nShowCmd

declare long GetDesktopWindow in"win32api"

local hDCScreen

hDCScreen = GetDesktopWindow()

? ShellExecute( hDCScreen, "open","c:\foxpro\foxr.exe"," +x -cF:\foxpro\config.fp -t F:\profiler\progs\profiler.app","",1)
>Hi..!
>
>How can I call/run Foxpro DOS application/executable in Visual Foxpro ?
>Thanks
>
>Ravi
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform