D
dragan
This is not a Windows question. It's a question about defining manifest
constants (at least I think that the WM_USER-like stuff fits that
definition). Windows is just the example platform. Actually, thinking about
error IDs prompted me to post this but this is also not a question about
exceptions and exceptions are explicitly off-topic in this thread. Flames
about macros being evil are also off-topic.
While the Windows SDK preceded C++ popularity and is written in C, is a
define still the preferred way to do the WM_USER+1... WM_USER+n thing rather
than using consts in a C++ program? It seems easier and more efficient in
time and space. Which do you prefer and why? What are the pros and cons of
each technique? I do the define thing, as the const thing seems like too
much trouble for no gain.
constants (at least I think that the WM_USER-like stuff fits that
definition). Windows is just the example platform. Actually, thinking about
error IDs prompted me to post this but this is also not a question about
exceptions and exceptions are explicitly off-topic in this thread. Flames
about macros being evil are also off-topic.
While the Windows SDK preceded C++ popularity and is written in C, is a
define still the preferred way to do the WM_USER+1... WM_USER+n thing rather
than using consts in a C++ program? It seems easier and more efficient in
time and space. Which do you prefer and why? What are the pros and cons of
each technique? I do the define thing, as the const thing seems like too
much trouble for no gain.