Accessing COM property... - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Accessing COM property...

StrafingMooseStrafingMoose Posts: 4Member

Hi there,

I am creating a COM object like this:

[code]$_GLOBALS["C2"] = new COM("C2WebC4_1_017.WebClient") or die("Could not initiate COM object");[/code]

If I do:


I get, amongst other things:

[code]/* DISPID=1745027094 */
/* VT_VARIANT [12] */
var $value; [/code]

How do I access the data in $value ?


[code]var_dump ($_GLOBALS["C2"]->value)[/code]


[code]Fatal error: Uncaught exception 'com_exception' with message 'Error [0x8002000f] Parameter not optional. ' in C:InetpubwwwrootWebClientWebClientV2Dev est.php:14 Stack trace: #0 C:InetpubwwwrootWebClientWebClientV2Dev est.php(14): unknown() #1 {main} thrown in C:InetpubwwwrootWebClientWebClientV2Dev est.php on line 14[/code]

Any ideas ?

Sign In or Register to comment.