How to

Hello,
I am making a program on QT and use line above to read memory value, however id like to convert LPVOID from string, have done googleing and tests but no luck, hopefully someone is familiar with this type. Convert coluld be done from QString, std::string or if not possible other types.

ReadProcessMemory(hProc, (LPVOID)0xC6A0EB922C, &nVal, (DWORD)sizeof(nVal), NULL);
(LPVOID)0xC6A0EB922C this one.

Also how to add pointers to address, for example base address and 1-3 pointers?

Sorry for my english.
Last edited on
You should use a cast, a reinterpret_cast or a C cast.

You do it in the same way you're treading that int as a void* thru a cast, just cast it to something else.
Topic archived. No new replies allowed.