Passing argu to a C function.



Passing argu to a C function.

There is a C functin:
short GeErrMsg(BSTR* ErrMsg);

What should I pass to this function when calling it?

I tried all the following ways, but failed.

my @arr;
$obj->GetErrMsg($arr[0]);
$obj->GetErrMsg(\@arr);
$obj->GetErrMsg([@arr]);
$obj->GetErrMsg(@arr);

The error infor from Perl is like:
Win32::OLE(0.1702) error 0x80020005: "Type mismatch"
in METHOD/PROPERTYGET "GetErrMsg" argument 1 at D:\tmp\aaa.pl line 38

Help Please.
Thanks a lot.
.