.Net Com Interop: Return bool for a wrapped function that returns BOOL

Posted by Frederick on Stack Overflow See other posts from Stack Overflow or by Frederick
Published on 2010-06-09T07:28:56Z Indexed on 2010/06/09 7:32 UTC
Read the original article Hit count: 315

Filed under:
|

I have COM function that returns BOOL -- which is simply a typedef for int -- and I'm generating a .Net wrapper using Visual Studio. Is there a way I can have the wrapper automatically convert the BOOL to the C# bool type and return that?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about com-interop