Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Launch App and wait w/o RUN or DOS box
Message
 
À
21/06/2000 17:05:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00382891
Message ID:
00382911
Vues:
16
>>Try replacing lcInstallPath with a zero rather than an empty string. I think this will fix it. I just started using this API the other day and looking through the code it looks like Ed checks to see if that variable is a string. If it is a string it uses that as the path. If it is not a string it ignores it. Or you could try putting the g:\dev\newffa\programs as the lcInstallPath variable.
>>
>>HTH,
>>George
>>
>>>I am using the "Launch App and wait w/o RUN or DOS box" article Ed put on UT but I can't get it to work. I pass just the name portion which I set to include the directory referance ( to keep the test simple). I use the same var and issue the run command and it works but not from the LaunchAppAndWait. That always returns 0. Any ideas.
>>>
>>> lcInstallPath = ""
>>> lcAppToLaunch = "g:\dev\newffa\programs\pdfd4aw2.exe"
>>> run &lcAppToLaunch
>>> return
>>> lnAppLaunchSuccess = LaunchAppAndWait(lcAppToLaunch,lcInstallPath)
>>>
>>>
>>>I used a cut and paste copy of LaunchAppAndWait and just made it a function call.
>>>
>>>Thanks in advance
>>>Terry
>
>That worked :) It brings up another question though - Why? I just included the same lcInstallPath into the lcAppToLaunch var. It should work without doing this. I wonder why?
>
>Thanks again
>
>Terry
Great. Glad it worked. And as far as I can tell this is only due to the way the variable is being checked for existence. But at least it is working :-)
Everything we see or seems
Is but a dream within a dream
- Edgar Allen Poe
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform