Passing argu to a C function.
- From: japerlh@xxxxxxxxx (J aperlh)
- Date: Fri, 27 May 2005 11:23:56 +0800
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.
.
- Prev by Date: is there a simple way get the current line number of processed file?
- Next by Date: Passing argu to a C function.
- Previous by thread: is there a simple way get the current line number of processed file?
- Next by thread: Passing argu to a C function.
- Index(es):