Hi all,
Iam trying to extract an icon from a dll file like such:
######## code
my $A = 0;
my $B = 'shimgvw.dll'; ## I want icon 1 in this dll file
my $apiExecute = new Win32::API("Shell32", "ExtractIcon", ['P','P','N'], 'N');
my $hIcon= $apiExecute->Call($A,$B,1);
########
The problem is that the above method returns a handle (whatever that means) to
the icon. I need a
way to either convert the handle into an actual icon or just display it.
I tried DIBitmap but that did not work nither.
### code
use Win32::GUI::DIBitmap;
my $dib = newFromData Win32::GUI::DIBitmap ($hIcon) or die "no $!";
###
any help would be greatly appreciated.
thanks.
Alex ;)
=====
**************************
***** END OF MESSAGE *****
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com