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 


How to get the value of a pointer to a pointer?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Pirulito
Newbie cheater
Reputation: 0

Joined: 13 May 2017
Posts: 13

PostPosted: Sun May 14, 2017 5:47 am    Post subject: How to get the value of a pointer to a pointer? Reply with quote

I have the following code:

Code:

  (some code that defines and populates threshold)

  push ecx
  mov ecx,#850000
  cmp [threshold],ecx
  jae threached
  pop ecx
  ...
  jmp return

threached:
  pop ecx
 ...
  jmp return


but it doesn't work because "threshold", that was defined as a symbol in CE script, holds the value of memory that has a pointer and it is the value that this pointer points to that I want to compare to 850000. In other words, "threshold" is a pointer to a pointer.

How do I retrieve the value pointed by a pointer to a pointer so that I can compare it to 850000?

Thank you!

UPDATE: after some heavy google searching, problem is solved. I just have to de-reference it twice. Smile
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