I am using "GetLastError()" to get the error I got but it always returns that as an integer value. All the errors do have a string descriptive constant with them (eg WSAENOINIT). How would I get that string instead of the actual number?
Printable View
I am using "GetLastError()" to get the error I got but it always returns that as an integer value. All the errors do have a string descriptive constant with them (eg WSAENOINIT). How would I get that string instead of the actual number?
Use FormatMessage to get an error description. The descriptive constant you mean is only a symbol for easier coding and is not available at runtime.
Ok thanks.