Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

custom icon for my program

Status
Not open for further replies.

neos

Programmer
Oct 28, 2000
36
CA
I use dev-cpp, how can I give my console programs their own icon? (ie - so its not the default console icon the user clicks on.) shaun
 
You create a .ico file, and then reference it in a .rc file. You then compile the .rc file into a .res file using the resource compiler (rc.exe). You then link that file in when you link. I beleive if the icon has a resource ID of 1, it becomes the default icon.

It's been a while since I've done this (Windows 3.1 and OS/2 development), so I might be wrong on some of the details...

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top