in reply to in/out Win32:Ole strings
line, where you had VT_BYREF flag set. This would effectively pass the address of '12345' instead of the value of '12345' into the COM method. By definition your COM method requires an error code passed by value, not by reference.$obj->GetErrorStr(Variant(VT_I4|VT_BYREF,12345),$errstr);
then it would work.$obj->GetErrorStr(Variant(VT_I4,12345),$errstr);
|
|---|