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 


C++ trainer window
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
NoMercy
Master Cheater
Reputation: 1

Joined: 09 Feb 2009
Posts: 289

PostPosted: Fri Jul 10, 2009 4:21 am    Post subject: C++ trainer window Reply with quote

hello,

Im trying to learn c++ and i want to make a trainer for a game, but i want a window like this :http://media.photobucket.com/image/kitterz%20trainer/x_15red_x/kitterz.jpg

With al those commands in, which i can make myself... but how do i do that? I downloaded kittrz source but when i try to compile that in c++ it gives a lot of errors! Ktterz isnt wroten in c++?

A tut will be helpfull or an example[/url]
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Fri Jul 10, 2009 6:46 am    Post subject: Reply with quote

those are group box controls which are holding static text controls which are being manipulated by setwindowtext

i have an example coded.. but it's in ASM. still interested ? ^_^
Back to top
View user's profile Send private message
NoMercy
Master Cheater
Reputation: 1

Joined: 09 Feb 2009
Posts: 289

PostPosted: Fri Jul 10, 2009 6:59 am    Post subject: Reply with quote

could explain a little bit more about setwindowtext please?

Asm sure i need examples:D
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Fri Jul 10, 2009 7:13 am    Post subject: Reply with quote

you can get a handle to each of your controls in your dialogproc when handling WM_INITDIALOG then use setwindowtext to change the static text control's contents.

at work right now, will upload when i get home
Back to top
View user's profile Send private message
NoMercy
Master Cheater
Reputation: 1

Joined: 09 Feb 2009
Posts: 289

PostPosted: Fri Jul 10, 2009 9:31 am    Post subject: Reply with quote

i stil dont understand im new to this, so do u mayby have a tut or something?
Back to top
View user's profile Send private message
Jim Pook
How do I cheat?
Reputation: 0

Joined: 10 Jul 2009
Posts: 5

PostPosted: Fri Jul 10, 2009 9:52 am    Post subject: Reply with quote

I think it's best for you to start at the basics of C++ first, before you start anything like this. Help doesn't come falling from the sky, you know. There will be no tutorials on this, you need to figure it out yourself, and you need programming knowledge for that.
Back to top
View user's profile Send private message
NoMercy
Master Cheater
Reputation: 1

Joined: 09 Feb 2009
Posts: 289

PostPosted: Fri Jul 10, 2009 9:55 am    Post subject: Reply with quote

i know, im readying books at the moment, but gui doesnt appear in there
Back to top
View user's profile Send private message
Jim Pook
How do I cheat?
Reputation: 0

Joined: 10 Jul 2009
Posts: 5

PostPosted: Fri Jul 10, 2009 10:09 am    Post subject: Reply with quote

You are trying to make a DLL that is supposed to be injected into a process, am I correct? Try learning about DLL structures first. And making windows.
Back to top
View user's profile Send private message
NoMercy
Master Cheater
Reputation: 1

Joined: 09 Feb 2009
Posts: 289

PostPosted: Fri Jul 10, 2009 11:46 am    Post subject: Reply with quote

may i ask u a question first?

If i visit an example it virtual c++ , but i want to compile that in c++ it gives errors, but a lot of virtuaal c++ is the same as c++, whats the different?
Back to top
View user's profile Send private message
yoyonerd
Grandmaster Cheater
Reputation: 0

Joined: 26 Apr 2008
Posts: 699
Location: -->formerly yoyonerd<--

PostPosted: Fri Jul 10, 2009 1:55 pm    Post subject: Reply with quote

Odd, I use SetDlgItemText for changing the text o.o
_________________
Back to top
View user's profile Send private message AIM Address
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Fri Jul 10, 2009 2:27 pm    Post subject: Reply with quote

yes you can use that as well. anyway here is my example :
http://mn.zwit.org

it shows all of the things you wanted. i didn't get round to filling in some of the boxes.. didn't really know what to put in them. i coded that some time ago as a proof of concept sort thing for myself..

picture of the program :
http://img9.imageshack.us/img9/8003/systeminfom.jpg


Last edited by Slugsnack on Fri Jul 24, 2009 7:10 am; edited 1 time in total
Back to top
View user's profile Send private message
NoMercy
Master Cheater
Reputation: 1

Joined: 09 Feb 2009
Posts: 289

PostPosted: Fri Jul 10, 2009 2:44 pm    Post subject: Reply with quote

thanks man, that helped me a lot, now i can go to make my own.

But the resources.h are in the bin map right?

EDIT: This is a visal c++ language, or is that the same as c++?
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Fri Jul 10, 2009 3:45 pm    Post subject: Reply with quote

it's neither. it's assembly language but i'm using macros. saves thinking up label names..

not sure how the include file is done for C++ but i expect it ain't too different

anyway this is the steps i used to make the program :
1 ) design the GUI in a resource editor
2 ) create a dialogproc which handles messages sent to the dialog. have cases for different messages then different cases within each message case for each different handle that is involved
3 ) call dialogboxparam to create a modal window

maybe you should learn c++ properly and then learn basic winapi properly before advancing to window programming. i won't say it's 'advanced' but you'll just end up a copy and paste coder like void/: if you continue on this path without establishing a good base
Back to top
View user's profile Send private message
NoMercy
Master Cheater
Reputation: 1

Joined: 09 Feb 2009
Posts: 289

PostPosted: Fri Jul 10, 2009 3:51 pm    Post subject: Reply with quote

thanks for the advice i dont want to copy/paste

i want to make 100% my own,
Back to top
View user's profile Send private message
Pro-surf
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Dec 2007
Posts: 1415
Location: Under Ur Bed , Moauahauha

PostPosted: Fri Jul 10, 2009 6:05 pm    Post subject: Reply with quote

what kind of errors do you get?
_________________
ProsTrain VIP |..........| - 80% Done Smile im close to the finish line Smile
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 programming All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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