eforperl has asked for the wisdom of the Perl Monks concerning the following question:
I have tried many different ways to pass the variant but no luck. Can anyone point me to the right way to pass the variant to retrieve the data back? Any suggestions would be very helpful? Thanks.use Win32::OLE; use Win32::OLE::Variant; my $re = Win32::OLE->new('Read.ReadService') || die("Unable to open Re +adService ", Win32::OLE->LastError()); #Variables my $dat; my $temp; #$dat = Variant(VT_UI1|VT_ARRAY|VT_BYREF, 1); $dat = Variant(VT_EMPTY, 1); $re->Read(0xE0000, 13, $dat); foreach $temp ($dat) { print "0x".$temp; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trouble retrieving array of bytes using OLE
by Corion (Patriarch) on Dec 06, 2010 at 17:54 UTC | |
by eforperl (Initiate) on Dec 08, 2010 at 01:13 UTC | |
|
Re: Trouble retrieving array of bytes using OLE
by eforperl (Initiate) on Dec 06, 2010 at 17:39 UTC |