Thread: Using Icons From DLLs

  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    5

    Using Icons From DLLs

    Hi, I have just finished a simple console-based application for shutting down my computer at a given time. Now I want to have a fancy icon. =)

    I have found an appropraite icon in 'C:\WINDOWS\system32\SHELL32.dll', however, I have no idea how to extract and use it. I am only bothered about it being compatible with WinXP since it is for personal use. Could somebody please aid my search?

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    ExtractIcon will return an HICON which you can use, either directly in your application or as a starting point to saving it as an *ico file (see icons for more details).

    If you want to extract the icon as a resource (*.res) to build with your personal use application on your own winxp machine then perhaps Resource Hacker may be of some use to you.

    You probably should have directed this question to the windows board.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Registered User
    Join Date
    May 2004
    Posts
    5
    I ended up using resource hacker since it was the easiest solution. Thankyou very much!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [C] Problem with icons in a toolbar
    By pc2-brazil in forum Windows Programming
    Replies: 3
    Last Post: 12-22-2008, 11:04 PM
  2. Some doubts on DLLs
    By BrownB in forum Windows Programming
    Replies: 1
    Last Post: 05-30-2007, 02:25 AM
  3. standart dlls
    By keeper in forum C++ Programming
    Replies: 3
    Last Post: 07-05-2006, 07:32 PM
  4. Can't load string from resource DLL's string table
    By s_k in forum Windows Programming
    Replies: 4
    Last Post: 07-15-2003, 06:43 AM
  5. DLLs <- sound files, and nesting.
    By sean in forum C++ Programming
    Replies: 2
    Last Post: 10-28-2002, 05:13 PM