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!


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.