By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,028 Members | 894 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,028 IT Pros & Developers. It's quick & easy.

How to associate an Extension with my program ?

P: n/a
Hi,
Is it possible to write a code in C++ to associate a given file extension
with our application? So that if user double click on the file on Windows
Explorer, our application will be launched.

Thanks
Tran Hong Quang
Feb 14 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Tran Hong Quang" <Tr***********@discussions.microsoft.com> wrote in message
news:CC**********************************@microsof t.com...
Is it possible to write a code in C++ to associate a given file extension
with our application? So that if user double click on the file on Windows
Explorer, our application will be launched.


Yes. The shell's file associations are stored in the registry:

http://msdn.microsoft.com/library/de...file_types.asp

You certainly can manipulate the registry with code. Details are here:

http://msdn.microsoft.com/library/de..._functions.asp

Regards,
Will
Feb 14 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.