Thanks, Jan -- that showed me that the error is 

Win32::OLE(0.1709) error 0x80070005: "Access is denied"
Now I just have to figure out what permission is needed.

 
________________________________

From: Jan Dubois [mailto:[email protected]] 
Sent: Thursday, January 21, 2010 1:34 PM
To: Roode, Eric; [email protected]
Subject: RE: Win32::OLE can't create object



Win32::OLE->LastError()

 

You can also call Win32::OLE->Option(Warn => 2) at the beginning of your
script to display all OLE errors as they are encountered.

 

Cheers,

-Jan

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Roode,
Eric
Sent: Thursday, January 21, 2010 10:12 AM
To: [email protected]
Subject: Win32::OLE can't create object

 

The documentation for this module says,

    "The new() class method starts a new instance of an OLE Automation
object. It returns a reference to this object or undef if the creation
failed."

 

undef is not particularly useful.  Is there any way to get further
information on why the object could not be created?  I am trying to
track down a problem here and am getting stuck at this point.


Thanks.

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to