How can i convert a dword address to char so i can print on screen.
Code:
DWORD adr = FindPattern(hD3D, 0x128000, (PBYTE)"\xC8\x09\x00\x00\x00\x00\x89\x86\x00\x00\x00\x00\x87\x86", "xx????xx????xx");
I tried this but it gives me some weird letters:
Code:
char *ptr = reinterpret_cast<char*>(adr);
PrintText(ptr, 30, 200, RED, dMenu.pFont);
Code:
void PrintText(char pString[], int x, int y, D3DCOLOR col, ID3DXFont *font)
{
    RECT FontRect = { x, y, x+500, y+30 };
    font->DrawText( NULL, pString, -1, &FontRect, DT_LEFT | DT_WORDBREAK, col);
}