Hi all,
I have a variable define like this.
After doing some process, I want to set all bits(all 32 bits) into one. So I do this.Code:DWORD temp = 0;
Is that ok.Code:temp = 0xffffffff;
Printable View
Hi all,
I have a variable define like this.
After doing some process, I want to set all bits(all 32 bits) into one. So I do this.Code:DWORD temp = 0;
Is that ok.Code:temp = 0xffffffff;
Yeah.
Thanks,
I have a trick too. Since it is unsigned long if I do this?
Code:temp = -1;
Don't do that. It's not a trick, its misleading and bad practice.
Ok. Thanks for the information.