Hello All!
I need to interface a VFP6.0 program with a FW2.6 program. I'm using RUN right now, but I've seen the posts where that isn't a good idea. I agree, because we sometimes get "WinExec Failed, Code=24" on some W2K computers. In fact, we can have the program run fine for a while, but once we get the error, it seems to be "broke" forever.
PUBLIC gcSYSMemFile, gcPath
STORE FILENAME(M.SY_TempDir + "\" + SYS(3) + ".TMP") TO gcSYSMemFile
SAVE ALL LIKE SY_* TO (M.gcSYSMemFile)
STORE "F:" + M.gcSYSMemFile TO gcSYSMemFile
STORE "P:" + SET("PATH") TO gcPath
STORE FULLPATH("VISVF2FW.EXE") TO gcEXE
STORE STUFF(M.gcEXE, AT(".EXE", M.gcExe), 4, "") TO gcExe
And the actual run command is:
RUN /N &gcEXE &gcSYSMemFile &gcPath "R:VRR001.EXE" -T
Any suggestions on how to "fix" the WinExec error? And any suggestions on the "best" way to do what I want? (Okay, besides converting all the FPW2.6 code to VFP... we're working on that! This is just a workaround until that is completed.)
Cheryl A Bellucci
TRIAD GOVERNMENTAL SYSTEMS, INC
(who now uses her Foxite lunchbox to carry lunch to work!)