I was reading up about message crackers and was wondering how do I share variables between the messages. Global variables?
Printable View
I was reading up about message crackers and was wondering how do I share variables between the messages. Global variables?
Message crackers?
Yeah, I was reading about them in Programming Applications for Microsoft Windows. and I think I saw something about them on winprog.org. But they're a set of macros which lets you break each message down into seperate procedures and make your code easier to look at in theory. They're all defined in windowsx.h.
Aahh.
Yes, the way those macros are written global variables seem to be the only way. Which is why I don't like them, and why an object-oriented approach is better.