Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Associating file types to my App
Message
From
20/03/2000 15:37:17
 
 
To
20/03/2000 14:55:15
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00348044
Message ID:
00348083
Views:
22
>How can I associate a certain file extension (.xp in my case) with my application.
>

Youi need to create a set of registry entries under HKEY_CLASSES_ROOT that directs Windows to fire your application when a user clicks on a file with that extension from explorer or launches it from ShellExecute(). The easiest way to do this is to create the relation using the Windows Explorer's View/Folder Options/File Types dialog. The same effects can be achieved programmatically by creating the needed registry hierarchy for the file extension under HKEY_CLASSES_ROOT.

You can examine the structure of a relationship on your system using REGEDIT.
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
Reply
Map
View

Click here to load this message in the networking platform