Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP5 and VFP7 mix
Message
From
05/03/2003 13:04:47
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
VFP5 and VFP7 mix
Miscellaneous
Thread ID:
00761633
Message ID:
00761633
Views:
55
I have two EXEs, one compiled in VFP5 (call it PROG5.EXE), the other compiled in VFP7 (call it PROG7.EXE), running on a single workstation. Both VFP5 and VFP7 runtimes are installed, and both PROG5.EXE and PROG7.EXE run fine when launched separately.

But when I call PROG7.EXE from within PROG5.EXE, VFP5 throws Error 1195 "Object file PROG7.EXE was compiled in a previous version of FoxPro".

The call to PROG7.EXE from within PROG5.EXE is being made like this:

oExternal = CREATEOBJECT("ShellExecute",&sCommand,"open",&lParam,&sPath)
oExternal.Execute()

where
&sCommand is the fully-qualified path to PROG7.EXE
&lParam is a parameter string of arguments passed to PROG7.EXE
&sPath is the default directory where PROG7.EXE resides

This call from PROG5.EXE to PROG7.EXE worked great before PROG7.EXE was compiled in VFP7.

Any answers out there?

Thanks
Curt
Next
Reply
Map
View

Click here to load this message in the networking platform