strerror() for WSAGetLastError() and GetLastError() [modified]
-
Are there any functions that when given an error number returned from WSAGetLastError() and GetLastError() will return a char * to a descriptive string for that error. I am using unmanaged C++. This is what I would like to be able to do: cout << strerror(WSAGetLastError()) << endl; -- modified at 16:57 Monday 11th June, 2007
-
Are there any functions that when given an error number returned from WSAGetLastError() and GetLastError() will return a char * to a descriptive string for that error. I am using unmanaged C++. This is what I would like to be able to do: cout << strerror(WSAGetLastError()) << endl; -- modified at 16:57 Monday 11th June, 2007
Check out
FormatMessage()
.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne