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:
00092956
Views:
32
>>Why not just use DO instead?
>
>I need to create an independent process for the EXE. When the program is about to terminate, it launches another occurrance of itself. That is why I need to use WinExec, CreateProcess, or ShellExecute.
>
>I was never able to use DECLARE to define ShellExecute. It said it could not find the entry point in the DLL, but that is another story.
>
>I guess my question is can I do WinExec(SYS(16, 0), 1). It works on NT 4.0 but not on Windows 95. Does it make any difference that I compiled the EXE on NT? I am running the EXE from a NetWare 4.x server.
>
>Thanks!

Well, WinExec is included for backward compatibility. As far as ShellExecute() it sounds like you're using:
DECLARE INTEGER ShellExecute IN Win32API
rather than:
DECLARE INTEGER ShellExecute IN Shell32
The Shell32.DLL is not considered part of the Win32API. I have no idea why, but it isn't. There's a thread today with the proper full declaration.

hth,
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform