On Sat, 06 May 2006, Like Ma wrote:
> I want to communicate with COM, that is the following:
> coclass CJob {
> interface IJob;
> interface ISourceCollection;
> };
> by Win32::OLE like
> $job = Win32::OLE->new ('SyncService.Job.1') || die "Unable to create job.\n";
> if (Win32::OLE->LastError != 0) {
> print "Unable to new a job.\n";
> exit 1;
> }
>
> The default interface is IJob. My question is how to get the
> ISourceCollection?
You don't. Win32::OLE can only use IDispatch.
You should check if the object exposes methods of both
IJob and ISourceCollection through the IDispatch
interface.
Cheers,
-Jan
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs