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: | Jacob Catayoc |
---|---|
Location: | Pasay City, Metro Manila, Philippines |
Users: | 2 |
Nodes: | 4 (0 / 4) |
Uptime: | 31:52:26 |
Calls: | 14 |
Calls today: | 14 |
Messages: | 40,053 |
Posted today: | 8 |