Re: COM Features

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 
>  
> 
> ?>
> 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux