parameter passing by ref to a COM function
Posted: Wed Jun 16, 2004 7:11 pm
hi, there is a COM function having the following definition (.NET Interop):
public virtual new void CALL(System.String SubroutineName, @params);
in C#.NET, i am able to use the function by....
string param1 = "", param2 = "", param3 = "";
Object[] callParams = {param1, param2, param3};
comobj.Call("called.sub", ref callParams);
i tried the similar things in PHP....
$param1 = ""
$param2 = ""
$param3 = ""
$callParams = array($param1, $param2, $param3);
$comobj->Call("called.sub", $callParams); // how do i set up the by ref passing?
i got error when opening up the page:
PHP Warning: (null)(): Invoke() failed: Exception occurred.\r\n <b>Source</b>: OBjEX.jConnectObject.33 <b>Description</b>: Method : Call : OBJEX.GET.LIST.SUB\r\n\r\nThe subroutine was terminated abnormally.
is it an error from PHP? or from COM?
public virtual new void CALL(System.String SubroutineName, @params);
in C#.NET, i am able to use the function by....
string param1 = "", param2 = "", param3 = "";
Object[] callParams = {param1, param2, param3};
comobj.Call("called.sub", ref callParams);
i tried the similar things in PHP....
$param1 = ""
$param2 = ""
$param3 = ""
$callParams = array($param1, $param2, $param3);
$comobj->Call("called.sub", $callParams); // how do i set up the by ref passing?
i got error when opening up the page:
PHP Warning: (null)(): Invoke() failed: Exception occurred.\r\n <b>Source</b>: OBjEX.jConnectObject.33 <b>Description</b>: Method : Call : OBJEX.GET.LIST.SUB\r\n\r\nThe subroutine was terminated abnormally.
is it an error from PHP? or from COM?