Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unable to use WinExec
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00092940
Message ID:
00093043
Views:
34
Tim,

It might be a problem with VFP running the same program twice in the same folder, like trying to use foxuser.dbf exclusive in both instances.

Can you from a desktop shortcut launch the EXE twice without it choking on the second?

Why would the EXE want to spawn itself again? Maybe you need a seperate controller program that is responsible for launching the multiple instances of the app.

>Yes, I can get this working from the command window too, but the problem I am having is getting it to work from within the EXE. I have run some further test, and it seems I can launch another EXE that is different from the EXE current running. For example inside A.EXE, I can do a WinExec("B.EXE", 1) with no problem, but I cannot do a WinExec("A.EXE", 1).
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform