Ok, so im apslute beginner in both C++ and memory reading/editning. What im trying to do is write grinding/gathering profiles for MoP.
For that i needed to read coordinates. After figuring out stuff with Cheat engine i sucessfuly located memory adresses for coordinates.

00DDC06C
00DDC070
00DDC074
First time ive got this memory locations, they were different , fallowing pattern ( + 0x8837C)
What im trying to make is a simple C++ program that will read those adresses and return float value of coordinates.
I tryed something like this but it doesnt work:
Code:
#include "stdafx.h"
#include <windows.h>
#include <stdio.h>
#include <conio.h>
#include <iostream>
int main()
{
HWND hWnd;
DWORD processId;
HANDLE hProcess;
hWnd = FindWindow(L"World of Warcraft", 0);
GetWindowThreadProcessId(hWnd, &processId);
hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, processId);
float X;
ReadProcessMemory(hProcess, (LPVOID)(0xDDC070), &X, 4, 0);
std::cout << "X cooridnate: " << X << std::endl;
return 0;
}
Any help with makeing something like this would realy make me happy, and i will post several profiles for lazybot/honorbuddy in Bot profiles section of this forum.
**** I couldnt post in memory editing section for some reason.