Thread: Icon Help

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    VA National Guard The Brain's Avatar
    Join Date
    May 2004
    Location
    Manassas, VA USA
    Posts
    903

    Question Icon Help

    Hello,

    I am trying to change the default icon that appears in the left side of the task bar. I created a .ico file using a program called, "icon edit." I made all the proper annotations in resource.h and resource.rc; however, I still get the same old default icon in the taskbar. Any suggestions?

    I am using codeblocks 8.02 using with a known working program.

    resource.h excerpt
    Code:
    #define IDI_ICON 153
    rescource.rc excerpt
    Code:
    IDI_ICON ICON DISCARDABLE "C:\\Users\\Dsve\\Desktop\\Card Bitmaps\\ace icon.ico"
    call to load icon
    Code:
    wc.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON));

    This is a 32x32 icon. Program compiles without any errors. Complete code is available upon request. Please offer any suggestions if you see that I am missing something.
    Last edited by The Brain; 03-31-2009 at 01:41 AM.
    • "Problem Solving C++, The Object of Programming" -Walter Savitch
    • "Data Structures and Other Objects using C++" -Walter Savitch
    • "Assembly Language for Intel-Based Computers" -Kip Irvine
    • "Programming Windows, 5th edition" -Charles Petzold
    • "Visual C++ MFC Programming by Example" -John E. Swanke
    • "Network Programming Windows" -Jones/Ohlund
    • "Sams Teach Yourself Game Programming in 24 Hours" -Michael Morrison
    • "Mathmatics for 3D Game Programming & Computer Graphics" -Eric Lengyel

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Custom Icon for DLL
    By Delf in forum Windows Programming
    Replies: 5
    Last Post: 06-10-2005, 08:36 AM
  2. icon not showing
    By xlnk in forum Windows Programming
    Replies: 2
    Last Post: 02-27-2004, 06:36 PM
  3. Icon problem
    By mkyong in forum Windows Programming
    Replies: 0
    Last Post: 02-17-2003, 05:39 PM
  4. Icon? help!
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 12-16-2001, 06:21 PM
  5. icon in title bar?
    By Unregistered in forum Windows Programming
    Replies: 3
    Last Post: 12-12-2001, 06:43 PM