tags:

views:

259

answers:

3

I can extract 32*32 icon image, but how about 48*48.

I want to extract an icon image with size 48*48 frome an a .exe file in Windows. At first i got the icon resource bits and then i used "CreateIconFromResourceEx" API, but it works true for icon image with size 32*32.

A: 

Use this one for windows: http://www.resedit.net/

aviv
I want source code in C++, not a software
Abolhassan Abdolalizadeh
@Abolhassan This is not a"we write the code for you" site.
anon
WHUH? There's only one true ResEdit: ftp://ftp.apple.com/developer/Tool_Chest/Developer_Utilities/ResEdit_2.1.3/
Potatoswatter
A: 

For Windows use the LoadResource and related Win32 API. Just name the 48*48 resource something else.

Brian R. Bondy
An icon may contain multiple images in various size. i want to get the application iocn in right size(48*48) for drawing it on a (DC)device context.I used CreateIconFromResourceEx, but i couldn't get the icon in size 48*48
Abolhassan Abdolalizadeh
@Abolhassan: I understand, and am familiar with the icon file format being a container format, but I'm not sure if there are Win32 API to work with that. You could try adding a new resource which is only a 48x48 icon.
Brian R. Bondy
+1  A: 

This link includes usefull code in C++ for extracting icon images of an exe or dll file. but this one dose not work correctly for 48*48 icon image. http://www.codeproject.com/KB/cpp/GetIconsfromExeorDLLs/GetIconsfromExeorDLLs_src.zip

this link realy works true for extrancting icon images in various size frome exe or dll files, but this one is written in C#. we can use it to correct the previous one; http://www.codeproject.com/KB/cs/IconExtractor/IconExtractorApp.zip

Abolhassan Abdolalizadeh