Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Change Icon in console app

Posted on 2004-08-08
1
Medium Priority
?
433 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 400 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

604 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