Results 1 to 2 of 2
  1. #1
    Braco22's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    150
    Reputation
    12
    Thanks
    606

    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);
    }

  2. #2
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    4,922
    My Mood
    Cool
    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);
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

Similar Threads

  1. [Release] Check full screen Addy
    By heroji in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 8
    Last Post: 09-17-2011, 11:06 AM
  2. [Solved] print screen
    By chaosGG in forum CrossFire Help
    Replies: 5
    Last Post: 09-16-2011, 07:47 PM
  3. [Help] Pressing Print screen?[Solved]
    By nathanael890 in forum Visual Basic Programming
    Replies: 23
    Last Post: 11-10-2010, 05:19 AM
  4. How to use print screen
    By the1fear in forum Soldier Front Hacks
    Replies: 11
    Last Post: 03-07-2008, 06:52 PM
  5. top of screen message hack
    By hjerherjdsd in forum WarRock - International Hacks
    Replies: 30
    Last Post: 07-31-2006, 07:39 PM