Dear All,
I'm trying to use a COM dll function like that: HRESULT Reader::QueryData(out, ref] float * p1, [out, ref] float * p2, [out, ref] VARIANT * pData) PHP code: $p1 = 0.0; $p2 = 0.0; //$p3 = []; //$p3 = array(); //$p3 = new VARIANT(); //$p3 = new VARIANT([], VT_VARIANT|VT_ARRAY); //$p3 = new VARIANT(new ArrayObject(), VT_VARIANT|VT_ARRAY); $result = $reader->QueryData($p1, $p2, $p3); Error: Parameter 2: The types do not match. com_print_typeinfo() /* DISPID=9 */ function QueryData( /* VT_PTR [26] [out] --> VT_R4 [4] */ &$p1, /* VT_PTR [26] [out] --> VT_R4 [4] */ &$p2, /* VT_PTR [26] [out] --> VT_VARIANT [12] */ &$p3 ) I tried to declare in different ways a variable to get a returned by COM dll function, but without success. I can't find documentation if this kind of functionality is supported by php_com_dotnet extension. I will appreciate your support, thanks in advance. Kind regards Alejandro Gonzalez