ErrorMess()

The ErrorMess() function is declared in C as

Int WINAPI  ErrorMess(LPINT errorcode, LPSTR errortext)

And is use to obtain in errortext the text string corresponding to the error code pointed to by errorcode.

Note that the buffer pointed to by errortext must be declared as at least 36 bytes (ie char errortext[36]) to received the error messages.

Basic declaration

Private Declare Function ErrorMess Lib "dlunif" (ByRef er As Long, ByVal ertext As String) As Long

 

 

More:

Error codes