Custom Icon for DLL

This is a discussion on Custom Icon for DLL within the Windows Programming forums, part of the Platform Specific Boards category; Hi, Is it possible to give some custom icon to a DLL. So far, I have DllMain and resource (.rc) ...

  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    23

    Custom Icon for DLL

    Hi,

    Is it possible to give some custom icon to a DLL.

    So far, I have DllMain and resource (.rc) file with an icon, but
    the icon is not used in Explorer for my dll.

    At some moment, I changed DLL's extension to .EXE and
    here it was: my icon. If I double-click on it, console windows shows for a
    moment and exits. Nothing harmfull to computer happens, but I feel
    strange with my solution.

    (I'll use that DLL with LoadLibrary() so I don't really care about its
    extension if LoadLibrary() lets me use it that way - haven't checked
    yet - I still hope to find something to change it's icon).

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,666
    You could always give it your own extension and register an icon for that extension.

    Customizing Icons

    gg

  3. #3
    Registered User
    Join Date
    Sep 2003
    Posts
    23
    If everything else fails... yes, I can always go to registry and do what
    it takes. I just wanted to see if there's a way to avoid it: Darg&Drop
    install, non privileged users, etc.

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,666
    >> Darg&Drop install, non privileged users, etc
    ".EXE" is the only mechanism I can think of.

    >> but I feel strange with my solution
    Me too.

    gg

  5. #5
    Tropical Coder Darryl's Avatar
    Join Date
    Mar 2005
    Location
    Cayman Islands
    Posts
    503
    OK, I don't know how it's done and if someone can explain it, I'd like to know....but after the install of c++ beta express, the .sln icons are different depending on what version of visual studio it was created and what language it uses, even though they have the same .sln extension

    If you can figure that out, then I imagine you could applied that to your DLL icon problem.

  6. #6
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,666
    Creating Shell Extension Handlers

    >> I can always go to registry....I just wanted to...avoid it

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Icon Help
    By The Brain in forum Windows Programming
    Replies: 11
    Last Post: 04-05-2009, 04:06 PM
  2. Replies: 1
    Last Post: 08-04-2008, 05:34 PM
  3. Adding a custom Icon
    By St0rmTroop3er in forum Windows Programming
    Replies: 4
    Last Post: 10-01-2003, 10:44 AM
  4. Icon problem
    By mkyong in forum Windows Programming
    Replies: 0
    Last Post: 02-17-2003, 04:39 PM
  5. icon in title bar?
    By Unregistered in forum Windows Programming
    Replies: 3
    Last Post: 12-12-2001, 05:43 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21