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,046 |
Nodes: | 17 (0 / 17) |
Uptime: | 30:06:03 |
Calls: | 501,838 |
Calls today: | 8 |
Files: | 104,425 |
D/L today: |
2,245 files (352M bytes) |
Messages: | 300,027 |
Posted today: | 4 |