On a 32 bit compiler, the format specifier which you can use to print the value of DWORD is %lu . You can also use %ld if you want to print the value in decimal format.