Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^3: Perl & Win32

by spurperl (Priest)
on Mar 18, 2005 at 11:53 UTC ( #440679=note: print w/replies, xml ) Need Help??

in reply to Re^2: Perl & Win32
in thread Exporting an Excel Chart to PNG using Win32::OLE

It would be difficult since errors of this kind are tunneled directly from the OLE engine. It's OLE's cryptic messages that should be fixed - then Win32::OLE will be fine.

Replies are listed 'Best First'.
Re^4: Perl & Win32
by gellyfish (Monsignor) on Mar 18, 2005 at 12:13 UTC

    Worse than that, judicious grepping of all of the Windows include files would suggest that this value is not even known to the OLE subsystem but comes from the Application, so without some gigantic registry of the possible HRESULT from every possible automation component you are always going to have this problem.


Re^4: Perl & Win32
by bart (Canon) on Mar 18, 2005 at 12:12 UTC
    I figure that there must be a way to ask the system, though OLE, what these cryptic error messages mean, something similar to the API call GetLastError() and the libwin32 functions Win32::GetLastError() and Win32::FormatMessage(). In that case, I think it's reasonable to ask Win32::OLE to handle the necessary paperwork for us.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (1)
As of 2022-01-17 05:25 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (51 votes). Check out past polls.