Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
16-Bit API to start program using associated file...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00217293
Message ID:
00217861
Vues:
20
>>>>I don't think it will work with RegFN and CallFN since this func is in a 32-bit dll.
>>>>
>>>Hi Vlad,
>>>
>>>Just tested in FPW 2.6a on Win98. Worked fine.
>>
>>George,
>>
>>Care to share your test code... I can't seem to locate prototype docuemntation for the 16-bit version of ShellExecute.
>>
>>Thanks,
>Sure thing, BOb. Here 'tis:
>lcfile = GETFILE('TXT')
>lcop = 'open'
>lcpath = JustPath(lcfile)
>lcarg = ""
>m.shellexe = RegFN("ShellExecute", "I@C@C@C@CI", "I", "Shell.dll")
>m.result = CallFN(m.shellexe, 0, @lcop, @lcfile, @lcarg, @lcpath, 9)
>That help?

Absolutle, I was just passing string directly... I guess this is how you emulate that you are passing a pointer?

Thanks again,
BOb
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform