Numerics to defines constants??
I amself-taught(learning) C and need some basic help please. Using VC/C++ 6.0. When debugging, the return result is a number, such as 0, 1, 2, etc. Petzold says we never have to worry about what the numbers mean, just use the letter constants. He never says how we are to translate the numbers into constants though. What number, for example, does the parameter TA-BOTTOM equate to? How are we to find out in debugging?? In debugging, only the number shows. IDOK and IDCANCEL are simple, but somtimes the return value number and the equivalent predefined constant are not so easy to figure out.Sometimes I need to figure out what number TA-BOTTOM, for example, means. What basic fact am I missing here???
Many thanks for your answer. (I did look it up in MSDN andSearch, but no luck. It is like looking up a word in a dictionalry without knowing the first few letters.
Again, many thanks!
Going from number to symbol?
Your answer is fine if you have the symbol; but debug just gives the number (as far as I know). Suppose the return result is 5. How do I go from 5 to the symbol? 5 means nothing to me and if you lookup the API, it only gives the possible symbols. How do you go to the definition of 5? I have discovered there may be several built-in symbols of, using my example, 5.