PHP-WIN: Handle DCOM BSTR return value

From: Date: Fri, 11 Oct 2002 13:30:50 +0000
Subject: PHP-WIN: Handle DCOM BSTR return value
Groups: php.windows 
Request: Send a blank email to php-windows+get-16401@lists.php.net to get a copy of this message
Hi, I hope someone could help me with this. I have tried confirming my email addr with php.windows newsgroup but still...ko. 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

« previous php.windows (#16401) next »