Solved

Change an exe-file's icon

Posted on 2004-04-05
3
377 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now