davemabe has asked for the wisdom of the Perl Monks concerning the following question:
I am using a Win32 COM API that has a function that takes several parameters and assigns values to the variables.
Here is the code in VB that I'm trying to convert to Perl.
Dave
Here is the pseudo code I am trying to use to make it work:Sub GetData(Number As Long, Prices() As Single, OtherDataPoints() As S +ingle)
Does anyone know what variant type I need to assign to $prices and $others that is equivalent to VB's "As Single"? I've tried several of the variant types found in the Win32::OLE::Variant perldoc, but so far I'm striking out.my $object = Win32::OLE->new('ClassID'); # this works correctly. my $number = 1; my $prices; my $others; my $returnValue = $object->GetData($number,$prices,$others); # always fails with Win32::OLE(0.1701) error 0x80020005: "Type mismatc +h" in argument 2
Dave
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Win32::OLE Type for VB's "As Single"
by guha (Priest) on Jan 20, 2005 at 15:57 UTC | |
by guha (Priest) on Jan 20, 2005 at 22:03 UTC | |
Re: Win32::OLE Type for VB's "As Single"
by gellyfish (Monsignor) on Jan 20, 2005 at 15:44 UTC | |
Re: Win32::OLE Type for VB's "As Single"
by holli (Abbot) on Jan 20, 2005 at 16:06 UTC | |
by davemabe (Monk) on Jan 20, 2005 at 16:46 UTC | |
Re: Win32::OLE Type for VB's "As Single"
by demerphq (Chancellor) on Jan 20, 2005 at 15:32 UTC | |
by davemabe (Monk) on Jan 20, 2005 at 15:36 UTC | |
Re: Win32::OLE Type for VB's "As Single"
by injunjoel (Priest) on Jan 20, 2005 at 19:05 UTC | |
Re: Win32::OLE Type for VB's "As Single"
by traveler (Parson) on Jan 20, 2005 at 20:20 UTC |
Back to
Seekers of Perl Wisdom