in reply to Re: Win32::API giving a program error
in thread Win32::API giving a program error
I'm still no closer to figuring this one out, so if anybody out there could help me it would be greatly appreciated.#!usr/bin/perl use Win32::API; my $filename="C:\\Program Files\\America Online 9.0g\\aol.exe"; my $apiobject = new Win32::API("C:\\Documents and Settings\\Mdaviesie\ +\Desktop\\dver_1.3\\fileversion.dll", "GetFileVersionTxt", 'PP','I') +or die "Failed to acquire API: $^E"; #Set some memory aside for the returned value my $string="\x00" x 1024; #Call the function in the dll $apiobject->Call($filename,$string)| die "died at line 16"; #Remove the unused padding in the string my ($final) = $string =~/(.*?)\x00/; print "\$final - $final";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Win32::API giving a program error
by Anonymous Monk on Jun 03, 2004 at 17:08 UTC | |
|
Re^3: Win32::API giving a program error
by Anonymous Monk on Jun 03, 2004 at 17:01 UTC | |
|
Re^3: Win32::API giving a program error
by jdavidboyd (Friar) on Jun 03, 2004 at 17:33 UTC | |
by Ven'Tatsu (Deacon) on Jun 03, 2004 at 18:49 UTC |