Solved

Change Icon in console app

Posted on 2004-08-08
1
431 Views
Last Modified: 2012-05-05
How do i Change the Icon in console application? i dont want the standard .exe icon.
and also can you change the icon programatically based on parameters?
0
Comment
Question by:c-prompt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 17

Accepted Solution

by:
Wim ten Brink earned 100 total points
ID: 11749158
Create an *.rc file with the following contents:

//----------------------------------
MAINICON ICON "YourIcon.ico"
//----------------------------------

And make sure you have an icon file named YourIcon.ico in the same folder. Next add:

{$R 'Yourfile.res' 'YourFile.rc'}

to the main source of your project. This will compile the YourFile.rc to an *.res file and include it in your console application. Since consoles normally don't have a *.res file with icons, this icon will be the one that's displayed.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question