Bizarro I post too much
Reputation: 0
Joined: 01 May 2007 Posts: 2648
|
Posted: Sun Apr 06, 2008 10:56 pm Post subject: [c++] pointer problem |
|
|
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  _________________
w8 baby.com Banner contest, Come join NOW!!
Check us out for Prize deatils |
|