> -----Original Message-----
> From: Toby Stuart [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 20, 2003 3:26 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: How to use ATL COM components in perl
> 
> 
> 
> 
> > -----Original Message-----
> > From: Pankaj Kapare [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, January 19, 2003 2:00 AM
> > To: [EMAIL PROTECTED]
> > Subject: How to use ATL COM components in perl
> > 
> > 
> > Hi,
> >    Can anybody tell me how to use perl components in perl.
> > Pankaj.
> > 
> 
> See the following modules:
> 
>       Win32::OLE  
>       Win32::API
> 

Further to the above.

To access an OLE/COM servers properties/methods see the following trivial
program as an example

It should be noted that Win32::OLE only supports the IDispatch interface ie.
custom interfaces are not supported.  Learn more in the Win32::OLE docs.

<snip>
use strict;
use Win32::OLE;

my $obj = new Win32::OLE("MyObject.Class");

# Set a property
$obj->{MyProperty} = 1;

# Call a method
$obj->MyMethod();

# Destroy the object
undef $obj;
</snip>



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to