I make a call from Vb6 to DLL written in MS C. I get result in sErr without get error, but I can see all message only in Intermediate windows of Vb6. When I make for example msgbox sErr I get only first letter of whole text. Review pic. To understand better situation.
I have a row sErr = String(255, vbNullChar) which is not seen by the picture, but this doesn’t help.
Please help – how to get this text in ordinary VB6 string ?
P.S: here you describe what is result of function from C declaration
const char* GetErrorText(int nError) const;
Return: The GetErrorText() function returns a pointer to a character string that contains a printable version of the error indicated by nError.