Results 1 to 2 of 2
  1. #1
    edi472's Avatar
    Join Date
    Oct 2011
    Gender
    male
    Location
    Brazil
    Posts
    7
    Reputation
    10
    Thanks
    0

    C++ Pointers & Offset

    Well, first go forward now apologize for the bad English, I am using a translator.
    I have some doubts about Pointeirs and offsets, I can usually find them without difficulty (this is even more difficult, no?), The problem is I can not in any way to edit the memory game with them.
    For example:

    Code:
    // 0x14C offset
    // 0x00246954 pointer
    int value = 100000;
    WriteProcessMemory(hProcess, (LPVOID)(DWORD) (0x00246954 + 0x14C), (LPVOID) &value, sizeof(&value), NULL);
    What's wrong with the code above? I saw him in a tutorial and there seemed to pick up perfectly, this is my question ... the Pointer Offset are correct and I'm sure more than absolute, tested more than 5 times and always fell on the same (using CHEAT ENGINE).

    Since I am already grateful for replies and sorry if this is a silly question, I'm still beginner.

    Regards.

  2. #2
    intervention61's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    285
    Reputation
    10
    Thanks
    875
    My Mood
    Cool
    You'r not reading the pointer to where it points to.
    Read up some basics on pointer and you should understand them better.
    Code:
    DWORD dwAddy;
    ReadProcessMemory( hProcess, (PVOID)0x00246954, &dwAddy, 4, 0 );
    WriteProcessMemory( hProcess, (PVOID)( dwAddy + 0x14C ), &value, 4, 0 );
    Last edited by intervention61; 06-21-2012 at 02:07 AM.
    "Joker: why the hakcer are steaklign us name it´s the greatest asshole and motherfucker and i fuck him or her mother"

Similar Threads

  1. [Release] Some Crossfire EU ( Addy's , Pointer's , Offsets )
    By BlackLite in forum CrossFire Europe Hack Source Code
    Replies: 35
    Last Post: 03-24-2012, 04:18 PM
  2. [Release] Pointers, Addys, Offsets, WeaponLog, ETC
    By DaRk in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 3
    Last Post: 02-05-2012, 02:16 PM
  3. [Request] Need pointer and offsets
    By badboy3 in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 2
    Last Post: 12-28-2011, 02:17 PM
  4. MapleStory Pointers And Offsets v1.0
    By Dreamer in forum MapleStory Hack Coding/Source Code
    Replies: 2
    Last Post: 08-22-2011, 12:35 AM
  5. Pointers and Offsets
    By aanthonyz in forum C++/C Programming
    Replies: 8
    Last Post: 03-03-2011, 02:37 AM