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:
00217346
Views:
24
>Is there an API that will allow me to run a program by passing a file name and having the OS run the program based on the current file association?
>
>This is for Fox 2.6 and would love something that would work in 3.11/9x/NT is possible. Something like...
>
>RunProg('MyFile.Doc')
>
>and it would run Word and word would open myfile.doc... Or, it would run word perfect, if that was what was associated?
>
>Thanks,
Hi BOb,

ShellExecute() in the 16 bit shell.dll would be your best bet. You'd have to use RegFN() and CallFN() to use it. AFAIK (I haven't tried), it should work just fine.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform