This is the code I have for the method:
if ((msgHdr.attr & MSG_VALIDATED) == 0)
{
msgHdr.attr &= MSG_VALIDATED;
('a&=b' is basically shorthand for 'a=a&b', as 'a|=b' is to 'a=a|b'.)
Try: msgHdr.attr |= MSG_VALIDATED;
The & operator returns 1 wherever the bits in both operands are set. The | operator returns a 1 wherever a bit in either operand is set.
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,039 |
Nodes: | 15 (0 / 15) |
Uptime: | 175:14:57 |
Calls: | 236,306 |
Calls today: | 13 |
Files: | 95,024 |
D/L today: |
10,051 files (2,127M bytes) |
Messages: | 289,581 |