CryptoSys API examples VB6 to VB.NET

API_ErrorLookup

Retrieves the error message associated with a given error code.

VB6/VBA

Debug.Print "Testing API_ErrorLookup ..."
Dim nErrCode As Long
nErrCode = 33
Debug.Print "ErrorLookup(" & nErrCode & ")=" & apiErrorLookup(nErrCode)

Output

Testing API_ErrorLookup ...
ErrorLookup(33)=Invalid key length (BAD_KEY_LEN_ERROR)

VB.NET

Console.WriteLine("Testing API_ErrorLookup ...")
Dim nErrCode As Integer
nErrCode = 33
Console.WriteLine("ErrorLookup(" & nErrCode & ")=" & General.ErrorLookup(nErrCode))

[Contents]

[HOME]   [NEXT: API_ErrorLookup (2)...]

Copyright © 2009-20 D.I. Management Services Pty Ltd. All rights reserved.