|
-
Apr 14th, 2002, 10:56 AM
#1
Thread Starter
PowerPoster
Getting the constant string of an integer
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?
-
Apr 14th, 2002, 01:34 PM
#2
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.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Apr 14th, 2002, 02:50 PM
#3
Thread Starter
PowerPoster
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|