Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Win32:OLE errors when running same code on Windows XP

by HelenCr (Monk)
on Aug 10, 2012 at 19:53 UTC ( #986814=note: print w/ replies, xml ) Need Help??


in reply to Re: Win32:OLE errors when running same code on Windows XP
in thread Win32:OLE errors when running same code on Windows XP

bulk88: sounds quite right. I will try it and report.

Meanwhile, can you explain a couple of questions:

1. What is a tied/magic scalar, and how is it involved here?

2. Why don't I get this "deluge" of OLE exceptions at the original installation on the Windows 7 system?

Many TIA

Helen


Comment on Re^2: Win32:OLE errors when running same code on Windows XP
Re^3: Win32:OLE errors when running same code on Windows XP
by bulk88 (Priest) on Aug 11, 2012 at 03:52 UTC
    Some tiny settings difference in Eclipse I bet. Maybe a "+" is open on 1 machine and not the other.
    * - Package Win32::OLE::Tie Implements properties as tied hash
    From Win32::OLE.
    Object methods and properties The object returned by the new() method can be used to invoke methods +or retrieve properties in the same fashion as described in the docume +ntation for the particular OLE class (eg. Microsoft Excel documentati +on describes the object hierarchy along with the properties and metho +ds exposed for OLE access). Optional parameters on method calls can be omitted by using undef as a + placeholder. A better way is to use named arguments, as the order of + optional parameters may change in later versions of the OLE server a +pplication. Named parameters can be specified in a reference to a has +h as the last parameter to a method call. Properties can be retrieved or set using hash syntax, while methods ca +n be invoked with the usual perl method call syntax. The keys and eac +h functions can be used to enumerate an object's properties. Beware t +hat a property is not always writable or even readable (sometimes rai +sing exceptions when read while being undefined). If a method or property returns an embedded OLE object, method and pro +perty access can be chained as shown in the examples below.
    Your answer is in the quote above. More specifically, a little bit of googling leads to this http://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel._application.activechart. I dont know what "Nothing" translates to in Win32::OLE.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://986814]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2014-12-25 08:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (159 votes), past polls