Making a COM dll to be invoked from c#, HRESULT error handling?

Posted by Daniel on Stack Overflow See other posts from Stack Overflow or by Daniel
Published on 2010-04-29T02:17:33Z Indexed on 2010/04/29 2:27 UTC
Read the original article Hit count: 383

Filed under:
|
|

I'm making a COM interface that c# will be using, however i am wondering how i am to check for errors and exception handling on the c# end as at the moment i am just returning a HRESTULT or bool for most methods. But several things can go wrong in some of these methods and returning a E_FAIL just doesn't cut it.

What can i do in order to return more information? Can i make a HRESULT of my own?

© Stack Overflow or respective owner

Related posts about c#

Related posts about com