Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89541 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85564 invoked from network); 3 Dec 2015 10:25:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Dec 2015 10:25:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=aogonzalez75@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=aogonzalez75@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.47 as permitted sender) X-PHP-List-Original-Sender: aogonzalez75@gmail.com X-Host-Fingerprint: 209.85.192.47 mail-qg0-f47.google.com Received: from [209.85.192.47] ([209.85.192.47:35284] helo=mail-qg0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F2/71-10512-C9810665 for ; Thu, 03 Dec 2015 05:25:33 -0500 Received: by qgec40 with SMTP id c40so56370755qge.2 for ; Thu, 03 Dec 2015 02:25:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=return-receipt-to:reply-to:from:to:subject:date:organization :message-id:mime-version:content-type:importance:thread-index :content-language:disposition-notification-to; bh=fx7kpJiqe0pAVI1nAySHr+8pHPiMLerMMZRdPi5NaDc=; b=zAGbdRRH9t+wwDWopM48B0DLBn/f/QwAuMwaLqsyCY9Of46rhrv8BZxRj8U0UYvb2z QDkidrHPE5z0QOlFHTCOqNHqpIurG22sbEDYPkvPzcvsObf9jIH+JT8l8nKo3+HLXJh3 XeUkL9RFeX3PhdmaJUEckPwymV5FnQtlCSh+ngeoZo/wuvndb477GOhHhwfpHd2+26oc XTK+8m++sWnRr9y8ga1FZyxIQ0y9lrdxK06o/CPweDLqmWbTmbOVyrzO68cs8tCccynT /t1FRbobtG1Uwxk9D8ubS2U1tdtVt1bKw0nR5dx/GxUStL5aOMQ3woTBfqqizPyboJVe sw1w== X-Received: by 10.140.195.18 with SMTP id q18mr10525546qha.44.1449138330198; Thu, 03 Dec 2015 02:25:30 -0800 (PST) Received: from ENIAC006 (ip-200-003-170-221.coopvgg.com.ar. [200.3.170.221]) by smtp.gmail.com with ESMTPSA id g124sm644062qkb.39.2015.12.03.02.25.28 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 03 Dec 2015 02:25:29 -0800 (PST) Reply-To: To: Date: Thu, 3 Dec 2015 07:25:25 -0300 Organization: Personal Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002A_01D12D9B.C8C9E370" X-Priority: 1 (Highest) X-MSMail-Priority: High X-Mailer: Microsoft Outlook 15.0 Importance: High Thread-Index: AdEttM9hR/uCPKt8SUiHwbACjcQtAw== Content-Language: es-ar Disposition-Notification-To: "Alejandro Gonzalez" Subject: PHP COM Array of VARIANT as out parameter From: aogonzalez75@gmail.com ("Alejandro Gonzalez") ------=_NextPart_000_002A_01D12D9B.C8C9E370 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 ------=_NextPart_000_002A_01D12D9B.C8C9E370--