Re: How to convert error code to text??

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



" **Developer**" <REMOVEdeveloper@xxxxxxxxxx> schrieb:
For  WinSpool.SetPrinter a zero return indicates an error.

SetLastError defaults to True in VB so I can get the errorcode as follows:

ErrorCode = Marshal.GetLastWin32Error()

The value is 6 but that tells me very little.

Where can I find some text to better describe the error??

\\\ Dim s As String = _ (New Win32Exception(Marshal.GetLastWin32Error())).Message ///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


.