Err.LastDllError Equivalent in VB.NET

Hi,

I'm working on a conversion project: I would like to know If there is any .NET equivalent for the below statements:

1) Err.Raise (...) - I'm thinking of using throw statement.

2) Err.LastDllError

Thanks...




Answer this question

Err.LastDllError Equivalent in VB.NET

  • mikewo

    Kannan Online wrote:

    1) Err.Raise (...) - I'm thinking of using throw statement.

    2) Err.LastDllError

    1. Yes, use Throw

    2. System.Runtime.InteropServices.Marshal.GetLastWin32Error



  • Stephen_Sbh

    Thank you so much Mattias.

  • Err.LastDllError Equivalent in VB.NET