register file type? Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
MoonKid
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 543
Joined: Wed Apr 05, 2006 9:39 am
Contact:

register file type?

Post by MoonKid » Thu Mar 19, 2009 9:52 am

Is there a smart wx-way to register a file-type (with asociated application and icon) to the operating system?

It would be the best to do it plattformindepended. But only for windows would be ok, too.

tan
Moderator
Moderator
Posts: 1471
Joined: Tue Nov 14, 2006 7:58 am
Location: Saint-Petersburg, Russia

Re: register file type?

Post by tan » Thu Mar 19, 2009 10:48 am

Hi,
MoonKid wrote:Is there a smart wx-way to register a file-type (with asociated application and icon) to the operating system?
look at wxMimeTypesManager::AddFallbacks(const wxFileTypeInfo *fallbacks):
http://docs.wxwidgets.org/stable/wx_wxm ... dfallbacks
OS: Windows XP Pro
Compiler: MSVC++ 7.1
wxWidgets: 2.8.10

Post Reply