c - How do I retrieve an error string from WSAGetLastError()? -


I'm sending some socket code from Linux to Windows.

In linux, I convert strayer () to an incorrect code in a human-readable string.

The MSDN documentation shows the same string for each error code returned from WSAGetLastError () , but I do not see anything about how to regain those stars. << >> <<> <<>

Post text "itemprop =" text ">

The document says that you can use the text version of the error message to get the text version.

You get the FORMAT_MESSAGE_FROM_SYSTEM dwFlags parameter and pass the error code as dwMessage parameter.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -