Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to mimic Windows Explorer OLEs?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00273937
Message ID:
00278549
Views:
19
>I would the user to click from a list view (or similar control), and if (for example) the file clicked is an Excel spreadsheet; it would be neat if I could make it open "automatically" like it does in when clicked through Windows or NT explorer.
>
>My question is: Does Windows/VFP offer a method that will associate a file type like XLS with the proper OLE handles and icons, or do I need to evaluate each file type in the list and write my own ole associations?
>

Sure - the ShellExecute() and ShellExecuteEx() API calls both can fire executables or documents that have an OLE association. There's support for ShellExecute in the FFC in VFP6, and API examples in the FAQ for VFP5 and earlier..
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform