Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Supressing dos window when using RUN command
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00104787
Message ID:
00104812
Views:
23
>>I execute a VB exe from within my VFP3 application using RUN vb5prog.exe
>>
>>How do I supress the DOS window from coming up when I use the RUN command? Is there another way of calling the EXE?
>>
>>The EXE called is written in VB5.
>
>you can use the WinExec api call.

*****
DECLARE LONG WinExec IN Kernal32.dll string lcCmdLine, integer lnCmdShow

lcCmdLine = "vb5prog.exe"

lnretval = WinExec(@lcCmdLine,0)
*****

Give this a try. I don't have VFP loaded on this PC so there maybe a typo. If there is, sorry about that, but atleast this should point you in a direction (hopefully in the right direction).
Fred Lauckner

You know, it works on my computer. I don't know what your problem is.

.Net aint so bad.
Previous
Reply
Map
View

Click here to load this message in the networking platform