[Win32utils-devel] win32ole and sane error messages

Daniel Berger djberg96 at gmail.com
Thu Aug 29 03:37:28 UTC 2013


The HRESULT value, yes. Hm, that looks like an internal function. Guess
I'll just parse it out.

Man, every time I look at that source code I'm reminded how ugly it is.


On Wed, Aug 28, 2013 at 7:06 PM, Heesob Park <phasis at gmail.com> wrote:

> Hi,
>
> 2013/8/29 Daniel Berger <djberg96 at gmail.com>:
> > Is there a trick to getting a decent error message from a
> > WIN32OLERuntimeError, or will I have to parse the number out and run it
> > through FormatMessage myself?
> >
> I'm not sure what is the number you want to parse.
> If it is HRESULT error code, there is ole_hresult2msg function in
> win32ole.c.
>
> Regards,
> Park Heesob
> _______________________________________________
> win32utils-devel mailing list
> win32utils-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/win32utils-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/win32utils-devel/attachments/20130828/1aac4600/attachment.html>


More information about the win32utils-devel mailing list