how do i extract an icon from an exe file, then write it to a file.
CPAN is your friend.
Win32::Exe has what you need unless you must create this yourself. I bet if
you look at the module source you'll see what your looking.
HTH,
Trevor J. Joerges
SendMIME Software
www.sendmime.com
: Wednesday, December 15, 2004 2:37 PM
To: Perl-Win32
Cc: [EMAIL PROTECTED]
Subject: ExtractIcon, then write it to file
hello all,
how do i extract an icon from an exe file, then write it to a file.
here is my code. It does not work.
-
use Win32::API;
my $ExtractIcon = new Win32::API(shell32.dll
hello all,
how do i extract an icon from an exe file, then write it to a file.
here is my code. It does not work.
-
use Win32::API;
my $ExtractIcon = new Win32::API(shell32.dll,ExtractIcon,[N,P,N],'N');
my $icon = $ExtractIcon-Call($$,C:\\Program Files\\Shareaza\\Shareaza.exe,0);