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: | Eric Oulashin |
---|---|
Location: | Beaverton, Oregon, USA |
Users: | 85 |
Nodes: | 16 (0 / 16) |
Uptime: | 07:35:02 |
Calls: | 6,744 |
Calls today: | 5 |
Files: | 8,536 |
D/L today: |
1,098 files (415M bytes) |
Messages: | 361,797 |
Posted today: | 8 |