I have a simple question.If I wanted top add some hex values in vc++ like 0x140000000 and 0x02F61570 my calculator says the result is 0x142f61570, but in my code ,if I add these two numbers I only get 0x42f61570. Where could the problem be ?
I have already tried with maybe some other values than storing the hex in DWORD ,but the result is the same.
DWORD base = 0x140000000;
DWORD address = 0x02F61570;
DWORD next = base + address;
printf("0x%x\n",next);
the result of the operation in my code are => 0x42f61570 as opposed to my calculator ,which says 0x142f61570