Catching run time errors from unmanaged code

M

Manish Soni

My C# code invokes some unamanged code. My goal is to somehow catch any time
error in the unmanaged code. I want to capture that a show a user friendly
exception to the end user.

-- Manish
 
M

Michael C#

Most of the time you return an int value from unmanaged code, then check
that value from within your managed code. Usually a zero indicates no
errors/successful completion of unmanaged code; other values can indicate
various error conditions you wish to trap.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top