Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EXECUTING FOX 2.6 INTO VFP

Status
Not open for further replies.

samso

Programmer
Jul 15, 2002
10
0
0
ES
HI!

How can I execute an EXE file made in Fox 2.6 into an app made in VFP 7.0

without using RUN /N

I Want to use shellexecute but i don't know the correct syntax.

thanks a lot.
 
Hi Samso,

1. Make sure the Fox*.ESl & FOX*.ESO files (Runtime libraries are in the same directory as the FPD2.6 application directory).
2. Start VFP
3. Set defa to that FPD2.6 application directory.

Then..

DECLARE INTEGER ShellExecute IN shell32.dll ;
INTEGER hndWin, STRING cAction, STRING cFileName, ;
STRING cParams, STRING cDir, INTEGER nShowWin
=ShellExecute(0,"","myFox2.Exe","","",1)

All the above you can put in a batch file and then run that batch file as well. :)

I have not tested deeply, but it works :)

ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top