Print Addy to Screen?

Posts 1–2 of 2 · Page 1 of 1
Print Addy to Screen?
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);
}
Damn you dont know C++ at ALL!

@Jason help me

Code:
DWORD adr = FindPattern(hD3D, 0x128000, (PBYTE)"\xC8\x09\x00\x00\x00\x00\x89\x86\x00\x00\x00\x00\x87\x86", "xx????xx????xx");
char buffer[020];
sprintf_s(buffer, "0x%X", adr);
PrintText(buffer, 10, 20, 0xFFFF0000/*red*/, pFont);
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us