Solved Visually checking the address

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

hiei2071

Newbie
Full Member
Jul 30, 2013
7
172
0
I'm in need of a function that can draw the address on the screen so that i'm sure I have the right one.

Here's the closest i've come to getting it:

C++:
void drawAddress()
{
              DWORD onEnemy =	(*(DWORD*)(BaseAddress + 0x000628A4) + 0x2AC + 0x8 + 0x2EC);



		WCHAR szTest[20]; // WCHAR is the same as wchar_t

		swprintf_s(szTest, 20, L"%d", onEnemy); //put DWORD onEnemy into the buffer szTest

		RECT rect;

	HDC wdc = GetWindowDC(hwnd);
	SetTextColor(wdc, 0x00000000);
	rect.left=40;
	rect.top=10;


	DrawText( wdc, szTest, -1, &rect, NULL ) ;
	DeleteDC(wdc);  [
}
I end up with a bunch of numbers that don't have any letters in them
 
Last edited:

squeenie

Hacker
Meme Tier VIP
Dank Tier Donator
Mar 6, 2013
677
5,478
37
Thanks for the offset help I knew I was doing something wrong there.

But I still can't get see the address even with cout as it displays exactly what my function displays so it's just a bunch of numbers and not the address D:
Use itoa()

example:
C++:
char _b[32];
itoa((int)address, _b, 16);
cout << b << endl;
The last argument prints it as base16, ie, hex
 

hiei2071

Newbie
Full Member
Jul 30, 2013
7
172
0
Thanks for the offset help I knew I was doing something wrong there.

But I still can't get see the address even with cout as it displays exactly what my function displays so it's just a bunch of numbers and not the address D:
 

hiei2071

Newbie
Full Member
Jul 30, 2013
7
172
0
Oops silly me I missed what you said about itoa on your first post.

Works great thanks bros ^_^
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods