Solved

Change an exe-file's icon

Posted on 2004-04-05
3
379 Views
Last Modified: 2010-04-05
How do I change an exe-file's icon? (I want to create a program like Resource Hacker)
0
Comment
Question by:din345
3 Comments
 
LVL 2

Expert Comment

by:ferhad
ID: 10755977
Click Project/Options command. Switch to Application tab and press Load icon button. Select *.ico file you want and press open. After running your application will have new icon.
Hope it will help.
Regards
0
 
LVL 1

Author Comment

by:din345
ID: 10756397
I don't want to change my own app's icon. I mean that I want to change the icon from an other application with my app, like resource hacker (http://www.users.on.net/johnson/resourcehacker/)
0
 
LVL 11

Accepted Solution

by:
shaneholmes earned 25 total points
ID: 10757322
Using Delphi Expert 'Madshi's unit madRes it's fairly easy:

- BeginUpdateResourceW (exe file path)
- LoadIconGroupResourceW (new ico file path)
- EndUpdateResourceW

That's it. Just give in the correct parameters. Must be wide strings.

See here for documentation:

http://help.madshi.net/madResUnit.htm

Here's a direct download:

http://madshi.bei.t-online.de/madCollectionBeta.exe



Shane
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi: how to send PJL commands to printer 3 100
Intraweb download file link ? 1 134
Correct Component for Shopping Cart. 2 105
Delphi 2 60
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…
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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

777 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