Trivial patch using strerror() to produce more
descriptive error messages. Not sure if this function
also exists on Windows - if not, it should probably be
#ifdefed.
strerror does exit under windows but I am not sure if it will
acutally work properly - big suprise there. IF it doesn't work it
can be done instead by this lovely complex call:
patch against xmlrpc++0.7
Logged In: NO
strerror does exit under windows but I am not sure if it will
acutally work properly - big suprise there. IF it doesn't work it
can be done instead by this lovely complex call:
FormatMessage(
FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM,
NULL,
GetLastError(),
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), //
Default language
(LPTSTR) &lpMsgBuf,
0,
NULL
);
GetLastError() should prolly be replaced with getError()