Since I used the function below:
BOOL readyProcessMe = ReadProcessMemory(process, (LPCVOID)memory, &value, 4, 0);
How can I show the correct value in a label?
Since I used the function below:
BOOL readyProcessMe = ReadProcessMemory(process, (LPCVOID)memory, &value, 4, 0);
How can I show the correct value in a label?
When you do LPCWSTR(value)
you are the variable value
as a pointer, so it starts to reference a memory address.
You have to convert value
, which must be a 32-bit integer, to a string, for example, using the sprintf
function, and then put this string in the label.