The normal .NET way of reporting errors is to use exceptions rather than returning status codes. If you're using interop, you can make an external call to GetLastError (I don't have the details to hand, but there are bound to be plenty of pages on it).
Does that help?
JonThursday, April 13, 2006 10:19 AM
Friday, March 11, 2011 10:28 AM