The memory class is fine from this site, you may have to look at the way you write the values though as an integer will not work,
I would post my trainers but they never get approved as I protect to stop people reversing then.
A clue is that the game is x64 so you need to set your project accordingly.