Hello,<br><br>Quickly : I'm looking for a function that can associate a file extension<br>to his description as given under 'Type' on windows file browser.*<br><br>Exactly :<br>I'm currently trying to implement files sorting in my own-developped<br>file browser. I nearly completed this, but one sorting method causes<br>me trouble : 'by type' sorting.<br><br>I have an object that makes generic Quick-Sorting and Reverse<br>Quick-Sorting (I make the reverse method). Theses sorting methods<br>need, of course, the surcharge of comparison operator. I known<br>how to do these surcharges (I succefully did it for other sorts).<br><br>But, when sorting by 'Type', the windows browser doesn't sort by<br>the extension of files (the "ext" in "filename.ext", but by the<br>description associated to the extension (such associations are<br>defined in the windows registeries (\HKEY_CLASSES_ROOT)). Does<br>it exist a MFC function or a system call that associates the<br>extension of a file to the description of the files with this<br>extension that lies on the \HKEY_CLASSES_ROOT ?<br>(I'd like to do the same as the windows explorer.)<br><br>Maybe I can do myself a function which does this, but this will<br>means I will make many access to the windows registery while<br>sorting files and this is quite ugly, no ?!<br><br>So, does you know this helpfull function ? Tell me !<br><br>May Thanks,<br><br>David Burg.<br><br>*: Ouh, I suspect a make a lot of bad english in this sentence. Sorry,<br>I'm not english, I'm french !