Use WSAGetLastError() with FormatMessage() ?

  • Thread starter Thread starter Polaris
  • Start date Start date
P

Polaris

Hi:

Can the error code returned by WSAGetLastError() be used in
FormatMessage(...) to get a text description of the error ?

Thanks in Advance !

Polaris
 
Yes, but don't forget to call WSAStartup at the beginning of your code (and check that it succeeds) or you'll just be getting
rubbish back from WSAGetLastError()

Steve Duff, MCSE, MVP
Ergodic Systems, Inc.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top