Solved GDI overlay

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

IzzyMichiel

Newbie
Full Member
May 29, 2016
43
198
1
Hey guys,

I am trying to make a overlay to make an ESP.
Now I only found a C# tutorial for that and I want to do it in c++. Is it possible?

Thanks
 

Martinek951

Newbie
Full Member
Dec 15, 2012
36
328
1
This is what I use to draw over a window.
It's also double buffered.


C++:
HDC hCod = GetDC(gameWindow);
HDC hdcBuffer = CreateCompatibleDC(hCod);
HBITMAP hBitmapBuffer = CreateCompatibleBitmap(hCod, windowRect.right, windowRect.bottom);
SelectObject(hdcBuffer, hBitmapBuffer);

for (int i = 0; i < entCount; i++) {
	//some unimportant code...


	rect = {ESP_X+25, ESP_Y-25, ESP_X + 50, ESP_Y + 25 };
	FillRect(hdcBuffer, &rect, red);

}
BitBlt(hCod, 0, 0, windowRect.right, windowRect.bottom, hdcBuffer, 0, 0, SRCCOPY);

DeleteDC(hdcBuffer);
DeleteObject(hBitmapBuffer);
ReleaseDC(gameWindow, hCod);
 

maxownage01

Jr.Coder
Full Member
Nobleman
Apr 23, 2015
69
493
1
Would also like to know this. Want to do a GUI in C++.
But according to my research you have to use the Windows API, with HBRUSH's and all.
If not that then CLR (please correct me on this)
 

IzzyMichiel

Newbie
Full Member
May 29, 2016
43
198
1
Yes but how do I make the overlay in c++?
I already know a bit of the windows drawing function ;)
 
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