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([EMAIL PROTECTED]); $obj->GetErrMsg([EMAIL PROTECTED]); $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. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>