Thread: Adding Icons to program

  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    3

    Adding Icons to program

    Hey i was wondering if anyone could tell me or give me a link on how to give my program an icon. i have the icon i want for it, but just dont no how to put it into the program. i tried google searching and nothing came up.

    thanks!

  2. #2
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,788
    Quote Originally Posted by dave2142 View Post
    Hey i was wondering if anyone could tell me or give me a link on how to give my program an icon. i have the icon i want for it, but just dont no how to put it into the program. i tried google searching and nothing came up.

    thanks!
    Could you tell what is the IDE, project type and library you are using (for example Win32 API, MFC, etc)
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    – David J. Wheeler

  3. #3
    Registered User
    Join Date
    Feb 2008
    Posts
    3
    win32, just pathches a few addresses.

  4. #4
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,788
    Then I suppose you are using the RegisterClass/RegisterClassEx function

    The WNDCLASSEX structure contains handle of the Icon to use
    Here is the sample code
    http://msdn2.microsoft.com/en-us/lib...75(VS.85).aspx
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    – David J. Wheeler

  5. #5
    Registered User
    Join Date
    Feb 2008
    Posts
    3
    thanks heaps.

  6. #6
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    For the icon that you see on your exe in explorer, you have to compile the icon as a resource in your exe.

    gg

  7. #7
    Dr Dipshi++ mike_g's Avatar
    Join Date
    Oct 2006
    Location
    On me hyperplane
    Posts
    1,218
    Alternaviely you could use an app like Resouce Hacker for it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program Plan
    By Programmer_P in forum C++ Programming
    Replies: 0
    Last Post: 05-11-2009, 01:42 AM
  2. Client-server system with input from separate program
    By robot-ic in forum Networking/Device Communication
    Replies: 3
    Last Post: 01-16-2009, 03:30 PM
  3. I need some help with my program please.
    By agentxx04 in forum C Programming
    Replies: 9
    Last Post: 09-26-2004, 07:51 AM
  4. Syntax for adding a program to autoexec.bat...
    By Sebastiani in forum C Programming
    Replies: 5
    Last Post: 06-18-2002, 12:38 AM