Showing the value of ReadProcessMemory C ++

0

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?

    
asked by anonymous 26.10.2014 / 09:39

1 answer

1

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.

    
27.10.2014 / 16:20