Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


I little direction

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Psychonaut.
Newbie cheater
Reputation: 0

Joined: 25 Aug 2012
Posts: 10

PostPosted: Wed Aug 29, 2012 10:37 am    Post subject: I little direction Reply with quote

Im having a rough time finding a tutorial for a C++ trainer (GUI not just CMD) or template, Id appreciate any help. ive been out of the game awhile the last thing i had was Jacksons Vb6 template but im leaning toward C now. Thanks in advance
Back to top
View user's profile Send private message
jakel007
Cheater
Reputation: 0

Joined: 28 Jul 2012
Posts: 29

PostPosted: Wed Aug 29, 2012 1:33 pm    Post subject: Reply with quote

If you want I could help you a bit with c# Trainer. If you were using vb, coding in c++ may be hard. PM me if interested, I can direct you to few good tutorials.
Back to top
View user's profile Send private message
n0 m3rcY
Cheater
Reputation: 0

Joined: 18 Jun 2012
Posts: 42

PostPosted: Wed Aug 29, 2012 2:31 pm    Post subject: Reply with quote

Well it depends on what you want. If you want just a normal winapi dialog you can use visual studio's designer or handle your own WM_COMMAND calls from the button ID.

If you want something like the oldschool ones without having to use GDI/DirectX, you can use DIBs. First, you'll need to declare a BITMAPINFO struct variable and fill the bmiHeader with the width and height from your dialog, and the size, planes, and bitcount. Then, you'll need to call CreateCompatibleDC() on the device context of your hwnd to the main window. Then, use SelectObject() and as the second parameter call CreateDIBSection to have your dib on your dialog. As the fourth parameter, you'll need a buffer of bytes that is width*height*4.

Then, during each WM_PAINT call, you'll need to call BitBlt on your hwnd.

To change the dib and get effects like starfields/plasma/whatever, you'll need to come up with some form of math to manipulate pixel by pixel on your dib buffer. Code below to show you how to set pixels using the dib buffer in case you got confused.

Research the DIB format a little bit so you can understand the rest like bitcount, planes, and size. It stores data in rows and a few other quirks.

Code:
void AddPixel(int x, int y, unsigned char r, unsigned char g, unsigned char b, unsigned char *dib)
{
        static int location = 0;
        location = (y * dib_width) + x;
        dib[location * 4] = b;
        dib[location * 4 + 1] = g;
        dib[location * 4 + 2] = r;
   //   dib[location * 4 + 3] = a; // alpha for transparency
}
Back to top
View user's profile Send private message
Psychonaut.
Newbie cheater
Reputation: 0

Joined: 25 Aug 2012
Posts: 10

PostPosted: Thu Aug 30, 2012 3:37 pm    Post subject: Reply with quote

Thank you sir, I appreciate your input
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites