Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Supressing dos window when using RUN command
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00104787
Message ID:
00104812
Vues:
25
>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform