Re: Re: php4 /ext/com COM.c

From: Date: Sat, 25 May 2002 14:48:31 +0000
Subject: Re: Re: php4 /ext/com COM.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-12099@lists.php.net to get a copy of this message
Yes and no... there is no guaranteed way to determine what the classid of the object is, and the object may support more than one interface. In theory, if everything supports IProvideClassInfo2 then we can always find out the coclass and go from there. In practice, it doesn't :-/ Also, it is useful to specify which interface you are interested in, particularly when it comes to event sinks. And finally, the first paramter could also be a typelibrary, in which case you need to specify which interface or coclass you are interested in. --Wez. On 25/05/02, "Harald Radi" <harald.radi@nme.at> wrote: > > $ie = new COM("InternetExplorer.Application"); > > // Prints class definition for IE object > > com_print_typeinfo($ie, "InternetExplorer.Application", false); > > ^- isn't this always supposed to be the > objects class string ? > > i mean com_print_typeinfo($ie, "AdoDB.Connection", true); wouldn't make > much sense. thus we could remove the additional parameter as it is > obvious. > > harald > > > -- > PHP CVS Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.cvs (#12099) next »