Re: COM Features
| From: | Leonardo Dutra | Date: | Fri, 26 May 2006 16:26:48 +0000 |
| Subject: | Re: COM Features | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-26932@lists.php.net to get a copy of this message | ||
On Wed, 2006-05-24 at 17:44 -0300, Leonardo Dutra wrote:
> Hi,
>
> I'm trying get some features from TAPI3.DLL using COM Support im PHP.
>
> PHP Version: 5.1.4 (CLI scene)
> OS: WinXP
>
> My doubt is how can I call ITAddress::QueryInterface method ? What
> parameters I need here?
Well, I see that IID is nedded here.
>
> Here's example:
>
> // $address is A ITAdress object
>
> $iTName = new Variant("ITAddressCapabilites", VT_BSTR);
IID_ITAddressCapabilities instead , but where I found this constant
value?
>
> $iTAddressCap = $address->QueryInterface($iTName);
>
> at this point a error is raised saying that member cannot be found...
>
> What can be wrong ?
Looking at OLE/View a discover that IID for ITAddressCapabilities is
something as {8DF232F5-821B-11D1-BB5C-00C04FB6809F}, then I tried to
pass this value as a VT_BSTR Variant doing:
$iTName = new Variant("8DF232F5-821B-11D1-BB5C-00C04FB6809F", VT_BSTR);
$address->QueryInterface($iTName);
mas o mesmo erro acontece ...member cannot be found...
It's my first time on COM environment, It can be easy or obvious for
most people here, but I really getting some dificults to understand what
I doing wrong.
Thanks again for any help
-Leonardo
>
> Thanks
>
>
> ?>
>