Solved

Change an exe-file's icon

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

Technology Partners: 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

Suggested Solutions

Title # Comments Views Activity
Internet Explorer View Settings Question 15 122
Create Database on Android via Delphi dbExpress 3 129
Delphi selector screen 2 92
IP without any Dots 1 53
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

756 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