CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2001
    Posts
    59

    file extensions and icons

    I have a program producing several files with different extensions. I am using CFile class to read&write files. I want my files with different extensions have different icons. How can i do this?


  2. #2
    Join Date
    Aug 1999
    Location
    Canada
    Posts
    2,076

    Re: file extensions and icons

    Just change in HKEY_CLASSES_ROOT registry key location of the new icon assigned to "your" file extension.

    Take a look to shell extension:

    http://msdn.microsoft.com/library/de.../extending.htm

    Example you can find in chapter Customizing Icons

    Good luck




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured