1

So i'm creating a small program and I want to use a custom icon for it's .exe. I'm using the Microsoft Visual C++ toolchain in Eclipse.C/C++ Any help is much appreciated!

2 Answers2

1

Got it figured out! I created a file called icon.rc and added the following line:

id ICON "\path\to\icon.ico"

It automatically compiled it and added it to my executable.

0

Executable icons are handled differently for different operating systems. I assume that you are writing a Windows C++ program (your question doesn't have a tag for your target OS or OSes). In Windows, the icon is stored in a "resource", which can be separate or part of your executable.

I think a little reading is necessary on your part, though I'll offer search suggestions:

  • visual c++ [version] resource editor
  • eclipse windows resource icon
Charles Burns
  • 10,310
  • 7
  • 64
  • 81
  • There exist a similar question to http://stackoverflow.com/questions/1411040/how-to-add-an-icon-to-an-application-built-with-eclipse-galileo-c-and-mingw – Mihai8 Jan 08 '13 at 16:41