>>>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.htm>
>There must be a way to do this using a Windows API and possibly a C++ wrapper to save the handle to a file?
Yeah, I found one too a few years back called "Icon Sucker". I always assumed that it used the imaging it did of the icons as a basis for possibly a bit-block transfer to the appropriate format.
Hmmm....I've got an idea. May not pan out, though.
George
Ubi caritas et amor, deus ibi est