Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
16-Bit API to start program using associated file...
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00217293
Message ID:
00217861
Views:
22
>>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform