I've searched a lot and found nothing useful regarding this thing. If anyone knows please share the knowledge.
Problem: I have a DWORD "-476053499" and I want to convert it to hex (e.g. XX XX XX XX).
I've searched a lot and found nothing useful regarding this thing. If anyone knows please share the knowledge.
Problem: I have a DWORD "-476053499" and I want to convert it to hex (e.g. XX XX XX XX).
Copyright © 2021 Jogjafile Inc.
DWORD is just a typedef for a a 32-bit unsigned integer (e.g.
unsigned intoruint32_t). Notice that it's "unsigned", so I'm not sure how that plays into your value of-476053499You didn't specify which language, but to convert a DWORD to a hexadecimal string is easily accomplished like this in C:
Equivalent in C++:
If your original value is actually a string, and not a DWORD, then to convert it to a number is simply: