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

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

I want to extract a 48 * 48 icon image from a .exe file on Windows. First I got the icon resource bit, and then I used the CreateIconFromResourceEx API, but it works correctly for icon images 32 * 32 in size.

+7
c ++ windows icons
source share
5 answers

This link includes useful C ++ code for extracting exe or dll icon images. but this single dose does not work correctly for a 48 * 48 image. http://www.codeproject.com/KB/cpp/GetIconsfromExeorDLLs/GetIconsfromExeorDLLs_src.zip

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

+3
source share

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

0
source share

For Windows, use LoadResource and the corresponding Win32 API. Just indicate resource 48 * 48 something else.

0
source share

Icons, images, music and other materials are saved as resources in an EXE file. Executables often have the PE (Portable Executable) standard. So, just download a disassembler, such as "PE Explorer" or "Resource Hacker", to extract what you want from the executable files.

0
source share

I also had to solve this problem, and it seems very confusing. But here is the answer I came up with:

http://www.codeproject.com/Tips/62005/Extracting-A-Particular-Icon-From-an-ICO-Resource

0
source share

All Articles