Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


pointers in c++

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
gunminiho
Expert Cheater
Reputation: 0

Joined: 15 Dec 2008
Posts: 144
Location: peru

PostPosted: Thu Aug 27, 2009 10:32 pm    Post subject: pointers in c++ Reply with quote

hmmm i ahve a question hmm how do i read a memory with pointerssomething like this in delphi:

Code:
Procedure lol()
begin

dword:Address:=[b]Pdword($Pointer)^[/b];

end;



i mean i have a pointer and a offset to point a addy, so how do i read that pointer and add it the offset?

Code:

PDWOD Pointer = 0x00CDAEBA;
DWORD offHP =0x00000d00;


to make that addy? but in C++
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Thu Aug 27, 2009 10:59 pm    Post subject: Re: pointers in c++ Reply with quote

gunminiho wrote:
hmmm i ahve a question hmm how do i read a memory with pointerssomething like this in delphi:

Code:
Procedure lol()
begin

dword:Address:=[b]Pdword($Pointer)^[/b];

end;



i mean i have a pointer and a offset to point a addy, so how do i read that pointer and add it the offset?

Code:

PDWOD Pointer = 0x00CDAEBA;
DWORD offHP =0x00000d00;


to make that addy? but in C++


Code:
(DWORD*)ptr = 0x00CDAEBA;
ptr = (DWORD*)(*ptr + 0x0D00);

with ptr pointing to the right place in memory now, just deference ptr to access the value there.

*ptr = 100;
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites