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 


[c++] pointer problem

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Bizarro
I post too much
Reputation: 0

Joined: 01 May 2007
Posts: 2648

PostPosted: Sun Apr 06, 2008 10:56 pm    Post subject: [c++] pointer problem Reply with quote

hi:

im having some troubles with detecting pointer using my dll dialog.
i want to use MapID in maplestory to see if im inside the game or not
8824cc + 5D8 is the MapID ptr.

so here is what i did.
Code:
int ID;
ID  = *((int *) (*((unsigned long *) 0x008824cc) + 0x5D8));
SetDlgItemInt(hWnd,IDC_INPUT,value,TRUE );// print out the ID in an edit control IDC_input.


if im ingame, it works perfectly by returning the ID of my current map.
but if im in cashshop, login screen, it crashed automatically.
i thought maybe its the SetDlgItemInt that made the crash, so i take it out, but i got crashed too with just setting up the value ID.

is there anyway to detect if im ingame or at login screen without getting crashed.
cuz i remember if i add the ptr+offset in CE, it returned value ?? when im in loginscreen.
help is appreciated Razz

_________________

w8 baby.com Banner contest, Come join NOW!!
Check us out for Prize deatils
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Mon Apr 07, 2008 1:57 am    Post subject: Reply with quote

Check out IsBadReadPtr():
http://msdn2.microsoft.com/en-us/library/aa366713.aspx

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
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