Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42359

VS 2008 ReadProcessMemory to a char array

$
0
0
Hi !
I need help with this thingy, i got a game called gta san andreas, it stores 30 last typed characters (in the gta_sa process ofcourse, only when its focused) to check for cheat codes.Im trying to read those characters to a Char array in vb.net (this address is 0x969110 - [char(30)] Buffer of 30 last typed chars, earlier typed chars are on next bytes. )]

However when i do it like this:
Code:

Dim cheatCodes() as Char = BitConverter.ToChar(ReadMemory(&H969110, 30), 0)
Then it gives a error
Quote:

Value of type 'Char' cannot be converted to '1-dimensional array of Char'.
I also cant get it without using the converter, and when i get it as string then it shows me the bytes, not actual characters.
Thanks in advance,

Viewing all articles
Browse latest Browse all 42359

Trending Articles