Solved

Change an exe-file's icon

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

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…
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month8 days, 22 hours left to enroll

617 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