PC Review


Reply
Thread Tools Rate Thread

How to interpret HRESULT as a property

 
 
geekgrrl
Guest
Posts: n/a
 
      14th Jan 2009
I have a COM object that contains a property, ConversionStatus that is
an HRESULT. This HRESULT will be any WIN32 error that may have
occurred.

In VB or C# How can I find out what error is in the HRESULT? Is there
an equivalent to the SUCCEEDED or FAILED macros that I can use against
this property?

 
Reply With Quote
 
 
 
 
geekgrrl
Guest
Posts: n/a
 
      14th Jan 2009
On Jan 14, 9:29*am, geekgrrl <geekgrr...@hotmail.com> wrote:
> I have a COM object that contains a property, ConversionStatus that is
> an HRESULT. This HRESULT will be any WIN32 error that may have
> occurred.
>
> In VB or C# How can I find out what error is in the HRESULT? Is there
> an equivalent to the SUCCEEDED or FAILED macros that I can use against
> this property?


I figured this out -
I needed to do the following (for VB):
Dim instance As New Win32Exception(error), where error is my HRESULT
property.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I am not sure how to interpret this... Henry Microsoft C# .NET 2 10th Jun 2006 03:47 PM
how to interpret Number property in System.Data.SqlClient.SqlError likong@email.com Microsoft Dot NET Framework 0 24th Mar 2006 04:30 AM
how to interpret Number property in System.Data.SqlClient.SqlError likong@email.com Microsoft ADO .NET 0 24th Mar 2006 04:30 AM
HResult property =?Utf-8?B?cG9seW5vbWlhbDVk?= Microsoft Dot NET Framework 4 5th Apr 2004 11:16 AM
How to interpret opmlog.log? Frank B Denman Microsoft Outlook Discussion 0 24th Nov 2003 01:25 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:21 AM.