cdlvj has asked for the wisdom of the Perl Monks concerning the following question:
snippet of dll code.Methods => { 'New' => { RetType => VT_DISPATCH, TotalParams => 1, NumOptionalParams => 0, ParamList => [ cm => VT_DISPATCH ] }, 'readDirectory' => {RetType => VT_VARIANT, TotalParams => 1, NumOptionalParams => 0, ParamList => [ dir => VT_BS +TR ] }, }, # end of 'Methods'
Calling program $Lista returns "Win32::OLE"sub readDirectory { my $self = shift; my %rlist; $rlist{"file1"} = '1'; $rlist{"file1"} = '2'; return \%rlist; }
my $Lista = $obj->readDirectory("txt"); %List = %$Lista; ???????????????????????????
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Return hash from a com object. ?
by kcott (Archbishop) on Jun 11, 2016 at 05:00 UTC | |
|
Re: Return hash from a com object. ?
by Anonymous Monk on Jun 11, 2016 at 01:21 UTC |