>>What is the proper function to retrieve an icon from an executable or DLL so I can load it into a ImageList with .ADD(,"Drive",LOADPICTURE("Drive.ico"))
>>?
>>
>>Thanks,
>
>Will,
>
>Actually, neither of these will do what you want. Both return a handle to the icon. The handle can be then used by an API function such as DrawIcon(). Unfortunately, the handle does not produce a physical file and there isn't an API call that can do this directly.
George,
I found a freeware program that extracts icons from executables and DLLs. It saves them as icon files. If it only had a COM interface.
http://monsternet.game-point.net/goodies/icon_digger_2000.htmThere must be a way to do this using a Windows API and possibly a C++ wrapper to save the handle to a file?