Thread: icon in win32 console application

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

    icon in win32 console application

    Hi, im trying to change the icon of my win32 console application, but i cant find any examples on how to do that. can someone please help. thanks

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Just put the following in your resource(rc) file:
    Code:
    1001 ICON my_icon_file.ico
    Search the board for more info.

  3. #3
    Registered User
    Join Date
    May 2004
    Posts
    215
    I tried that, still didnt work. I got the regular icon that pops up when the console window is displayed.

  4. #4
    Registered User
    Join Date
    May 2004
    Posts
    215
    It works now, thanks a lot!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 11-08-2008, 04:48 PM
  2. Console program to Win32
    By Ducky in forum Windows Programming
    Replies: 3
    Last Post: 02-25-2008, 12:46 PM
  3. adding icon to a file that ISN'T win32
    By jverkoey in forum C++ Programming
    Replies: 2
    Last Post: 09-07-2003, 10:40 PM
  4. using 'cin' like function in win32 application.
    By blacksheep in forum C++ Programming
    Replies: 2
    Last Post: 01-30-2003, 02:49 PM
  5. How To Convert A Dos-Prompt C++ PRogram Into Win32 Application ?
    By SonicWave in forum Windows Programming
    Replies: 1
    Last Post: 09-15-2001, 11:03 AM