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?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
M.CORP
Grandmaster Cheater Supreme
Reputation: 28

Joined: 28 Oct 2009
Posts: 1010

PostPosted: Mon Dec 20, 2010 5:07 pm    Post subject: Pointers? Reply with quote

I've done pointers on C++ for a while but i've never got the idea of it.
Could you please explain Pointers to me?
What they do... Although i know that it points to an address on the memory but i don't really get it.

_________________
Shameless Self Advertising Very Happy!
Steam
Just lurking around...
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Mon Dec 20, 2010 5:54 pm    Post subject: Reply with quote

read http://forum.cheatengine.org/viewtopic.php?t=422516

a pointer is a 32/64-bit value representing another address
that address is the start address of a block of memory containing all kinds of data from normal variables to other pointers

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Mon Dec 20, 2010 6:05 pm    Post subject: Reply with quote

you can think about a pointer as an identifier to some type of data, a type of handle. we also call this type of identifier a 'reference'. it just so happens that this 'reference' has a value that corresponds to the virtual memory address of the data it is referencing
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8516
Location: 127.0.0.1

PostPosted: Mon Dec 20, 2010 11:06 pm    Post subject: This post has 1 review(s) Reply with quote

Other good reads to get into specific types and such:
http://www.cplusplus.com/doc/tutorial/pointers/
http://www.augustcouncil.com/~tgibson/tutorial/ptr.html

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
iPromise
Grandmaster Cheater
Reputation: -1

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Thu Dec 23, 2010 1:14 pm    Post subject: Reply with quote

Lets say your scanning a pointer for your dynamic address which is 0x1000;

Your subtract the address your searching for by your offset range, then, do a range scan for any address whose value equals to any address in between that range ( address - offset range to address ).
Back to top
View user's profile Send private message MSN Messenger
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Thu Dec 23, 2010 4:23 pm    Post subject: Reply with quote

iPromise wrote:
Lets say your scanning a pointer for your dynamic address which is 0x1000;

Your subtract the address your searching for by your offset range, then, do a range scan for any address whose value equals to any address in between that range ( address - offset range to address ).


this is probably the least helpful response you could have possibly given
Back to top
View user's profile Send private message
M.CORP
Grandmaster Cheater Supreme
Reputation: 28

Joined: 28 Oct 2009
Posts: 1010

PostPosted: Thu Dec 23, 2010 8:19 pm    Post subject: Reply with quote

Wiccaan wrote:
Other good reads to get into specific types and such:
http://www.cplusplus.com/doc/tutorial/pointers/
http://www.augustcouncil.com/~tgibson/tutorial/ptr.html

Thanks, the second link is much more useful than the first one. Much more clearer and explained in a better way. Very Happy +rep!

_________________
Shameless Self Advertising Very Happy!
Steam
Just lurking around...
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 Dec 23, 2010 9:02 pm    Post subject: Reply with quote

imo one of the best ways to "get it" is to play around with them in the debugger.

it's easier to understand exactly what is happening when you can visually see it.
Back to top
View user's profile Send private message
M.CORP
Grandmaster Cheater Supreme
Reputation: 28

Joined: 28 Oct 2009
Posts: 1010

PostPosted: Thu Dec 23, 2010 10:14 pm    Post subject: Reply with quote

slovach wrote:
imo one of the best ways to "get it" is to play around with them in the debugger.

it's easier to understand exactly what is happening when you can visually see it.

That's how i usually learn Very Happy.

_________________
Shameless Self Advertising Very Happy!
Steam
Just lurking around...
Back to top
View user's profile Send private message
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Fri Dec 24, 2010 5:13 am    Post subject: Reply with quote

Always a good video: http://www.youtube.com/watch?v=UvoHwFvAvQE
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