php-windows Digest 26 May 2006 17:26:27 -0000 Issue 2970
Topics (messages 26931 through 26932):
COM Features
26931 by: Leonardo Dutra
26932 by: Leonardo Dutra
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
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?
Here's example:
// $address is A ITAdress object
$iTName = new Variant("ITAddressCapabilites", VT_BSTR);
$iTAddressCap = $address->QueryInterface($iTName);
at this point a error is raised saying that member cannot be found...
What can be wrong ?
Thanks
?>
--- End Message ---
--- Begin 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
>
>
> ?>
>
--- End Message ---