PHP-WIN : DCOM CALLING
| From: | Khor Eng Poh | Date: | Wed, 09 Oct 2002 11:48:36 +0000 |
| Subject: | PHP-WIN : DCOM CALLING | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-16400@lists.php.net to get a copy of this message | ||
Hi,
I hope someone could help me with this
How could I get a return value from DCOM server defined as follow
[propget, id(0x00000002)]
HRESULT _stdcall About([out, retval] BSTR * Value );
In PHP, I defined
$objApp = new COM("ComSer.Common") or die("Unable to instantiate DCOM
server");
$vVar = $objApp->About;
echo $vVar;
but it was giving me memory can't be written error.
But say if I create
$word = new COM("Word.Application");
echo $word->Version; // This works. Why?
Thanks, I'd like to appreciate your reply in advance.
Regards,
Khor