Read one address

08/31/2012 13:35 hoseta#1
Quote:
string* Address= reinterpret_cast< string* >( (*(DWORD_PTR*)0x********) + 0x**);
Kal::ChatBox("[kalxoor] ",3,"Address [%c]",*Address);

hay could some1 give me a hint how to get that work w/o crash?
i want to read text value address, when i use this code i am able to take first char of table, but when i change %c to %s my client crash, any hint?
08/31/2012 13:48 nonosocr1986#2
try

Kal::ChatBox("[kalxoor] ",3,"Address [%s]", &Address);
08/31/2012 16:16 hoseta#3
after i do this i see chinese chars, thats mean its not working becouse i should see in my chat game sequences of integer in text address, i have no idea what is wrong.

I am just able to read first char[0] of this address which is '1' next should be '7' but i cant do Address[1] becouse i see then 'H' whats wrong then?
08/31/2012 17:06 mohm195#4
What address you try to read?
I still don't got what you want to do xD
08/31/2012 21:18 RunzelEier#5
if you want an integer than why dont you use the rigth type?
try
%u
or if you want it hexadecimal
%X

;)
09/01/2012 00:08 hoseta#6
its text value, not integer, but in this "text value" should be sequence of number as text :D in value should be "17925543", i have no problem to read integer, dword etc.

but when i try to read text value i am able to read first char which is '1'.

address is not matter here, becouse i just dont know how to read full value form text, thats all, i know its noob stuff but idk why this shit wont work for me.
09/01/2012 11:36 nonosocr1986#7
u r reading the first value because char = byte , try to use array of char[] , instead of string
09/01/2012 19:54 FatherMonster#8
ha?
09/02/2012 01:34 hoseta#9
@nonosocr1986 when i trying to use array i see error becouse arrey not compatibility with point on something * , but yes my problem is that i can read just first char of string
09/02/2012 01:37 bloodx#10
memcpy? std::copy()?
09/02/2012 23:18 hoseta#11
Quote:
Originally Posted by bloodx View Post
memcpy? std::copy()?

You are so awesome :D idk why i didnt tryed this before forget about that function, thanks u so much.