> -----Original Message----- > From: Nilesh [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 23, 2003 11:55 AM > To: [EMAIL PROTECTED] > Subject: Re: How to use ATL COM components in perl > > > > "Pankaj Kapare" <[EMAIL PROTECTED]> wrote in message > 005901c2bf02$59dada70$a300a8c0@anurag">news:005901c2bf02$59dada70$a300a8c0@anurag... > Hi, > Can anybody tell me how to use perl components in perl. > Pankaj. >
I think i answered this the other day. Anyhoo ... To access an OLE/COM servers properties/methods use the Win32::OLE module. Note that Win32::OLE only supports the IDispatch interface ie. custom interfaces are not supported. Learn more in the Win32::OLE docs. A trivial example follows <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]