Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to extract 48*48 icon image from resource of an executable file?

Tags:

c++

windows

icons

I can extract 32*32 icon images, but how about 48*48?

I want to extract an icon image with size 48*48 from 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 images with size 32*32.

like image 391
Abolhassan Abdolalizadeh Avatar asked Apr 04 '10 14:04

Abolhassan Abdolalizadeh


1 Answers

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

like image 101
Abolhassan Abdolalizadeh Avatar answered Oct 20 '22 20:10

Abolhassan Abdolalizadeh