Solved

Extracting Icons and Images from Exe?

Posted on 2003-12-06
9
471 Views
Last Modified: 2010-04-05
Hi!

How extract Icons and Images from an executable file?
There is a sample in "Demo" Directory named "ResXplor"
But it cant extract all images and icons from exe.

The Author of this project himself wrote in first of unit "RXMain.pas" following line:

{ This program provides an example of how to use the TreeView and ListView
  components in a fashion similar to the Microsoft Windows Explorer.

  It is not intended to be a fully functional resource viewer. }


Does somebody show me a way for extracing images and icons completely.

Regards
0
Comment
Question by:Mamouri
9 Comments
 
LVL 11

Assisted Solution

by:robert_marquardt
robert_marquardt earned 31 total points
Comment Utility
Have a look at the Jedi Code Library http://sourceforge.net/projects/jcl
The example PEViewer also shows the resources.
0
 
LVL 2

Expert Comment

by:odissey1
Comment Utility
Hi Mamouri,

Not clear, do you need 1. icons extractor programm, 2. shell browser component or 3. you want to build your own combination  of 1 & 2?

regards,
odissey1
0
 
LVL 3

Author Comment

by:Mamouri
Comment Utility
Robert Thankx I will check it!
Odissey simply I want extract images and icons from and executable file! I can write myself shell browser component. It is not very hard! I want extract all exist icons and images from an exe

Regards
0
 
LVL 27

Accepted Solution

by:
kretzschmar earned 40 total points
Comment Utility
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 2

Expert Comment

by:odissey1
Comment Utility
Hi  Mamouri,

>I can write myself shell browser component. It is not very hard!

I think you are speaking about a basic file Viewer - not Shell Browser. To understand the complexity of 'Browser' take a look at VirtualShellTools (freware shell browser components) -so far the best I know- at
http://groups.yahoo.com/group/VirtualExplorerTree/
(first time installation can easely take 4-5 hours :)

this project is run for almost 2 years by several high-profile coders and still under development. If you are capable to accomplish something like that alone - you don't need  help here..

Problems I know: First, you'll have to work with shell functions. Then most likely you will need Namespace extensions (another nightmare). Then you will have to use 'virtual' mode -otherwise you'll stuck on any 'fat' folder forever. And both TTreeView and TListView are SO buggy in virtual mode and you have to patch them.

If you decide to go with VirtualShellTools, there is an example there (demos section) how-to populate  Thumbnails with a custom bitmaps (that's what you want). There are also several demo programs shownig howto build Explorer clones.

Another good solution for namespace browsing (NSLIB - the only one that I know) will be here http://www.whirlingdervishes.com/ (it costs approx. $350 and well worth it). In this approach you can use standard Windows explorer to open subfolders (like zip files) to see custom information on it (in your case - icons and bitmaps packed inside the file).

If you are still thinking about real Shell Browsing - think again - Borland tried to deliver TShell comonents for several years and failed - project is dropped as un-accomplished (that's why it is still under the Samples group).  

Good luck!

Regards,
odissey1
 
0
 
LVL 22

Assisted Solution

by:Ferruccio Accalai
Ferruccio Accalai earned 40 total points
Comment Utility
I think you need something like ResHacker ( http://www.users.on.net/johnson/resourcehacker/ )...
So you can look at the resource editor source as suggested in that site http://www.wilsonc.demon.co.uk/d6peresourceeditor.htm or download this D7 free package with source to learn how to  exctract resources from exe's and dll's http://www.btinternet.com/~wilsoncpw/resexp_source.zip

F68 ;-)
0
 
LVL 3

Expert Comment

by:ThoseBug
Comment Utility
Please give me a break...who is odissey1?....all the topics with your participation only have bad news and ironics comments...
0
 
LVL 2

Expert Comment

by:odissey1
Comment Utility
To ThoseBug,

Icons extraction is easy. Shell browsing is not. This is my last (weekend) project that was started Dec 1, 2002 - and not ready yet as after passing 10k lines of code program became 'unstable' :( . Note that existing programs like GLExtract, etc. do show tree view but have no brawsing capabilities.

odissey1
0
 
LVL 27

Expert Comment

by:kretzschmar
Comment Utility
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

16 Experts available now in Live!

Get 1:1 Help Now