note 14328 added to class.com.php
| From: | yb45324 at hotmail dot com | Date: | Thu, 26 Jul 2001 19:58:06 +0000 |
| Subject: | note 14328 added to class.com.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15881@lists.php.net to get a copy of this message | ||
PHP can send data to the COM function but can not get data back. If the COM function were declared
as
HRESULT foo(Bstr msg, short p1, long p2); Which the foo() will change the value of msg, p1, and p2.
Use either com_invoke(OBJ, foo, $msg,$p1,$p2 ) or
$obj->foo($msg,$p1,$p2) would not work.
The return value is 0 but the msg, p1 and p2 will be NULL.
http://www.php.net/manual/en/class.com.php