hey guys, I'm starting to create a class that will require a series of structure values to be set and then that structure passed to the class' constructor during creation. one of these will be a series of flags that can be set to a DWORD flag type variable.
its rather simple to set the flags, e.g.
Now please let me know if I've even done that part wrong. However, my question is... how do you get those values out of flags, or test for their presence in the flags variable? I have heard that MFC provides easily accessible methods for this, but I don't use MFC. Any ideas?Code:#define CLS_FLAGONE 0x34000000 // just random values #define CLS_FLAGTWO 0x00FF0000 // obviously not the best choices ;) #define CLS_FLAGTHREE 0x0000A100 . . . egStruct.flags=CLS_FLAGONE|CLS_FLAGTHREE; // DWORD variable . .