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++ - How do i do forms and buttons and stuff
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Renkokuken
GO Moderator
Reputation: 4

Joined: 22 Oct 2006
Posts: 3249

PostPosted: Tue Jan 15, 2008 9:48 am    Post subject: Reply with quote

Naablet wrote:
Renkokuken wrote:
Naablet wrote:
slovach wrote:
At the basics, it's the same way you'd make any other trainer, just a few API calls.

No, no dude. It's not just the same.
If u have tried vb then you know that it does most of the code for ya.
It's not the same as VB, it can't be.
If that is your view on coding, you will never get beyond a beginner's level. Not everything will be done for you.

What are you talking about? VB codes like most things for you. Here is an example..

[Removed the eye-sore]

You see?
dosen't you have to manually code this kind of stuff in like c++ and java?

lurc wrote:
heres a trainer template. i found it sumwhere... and just neatend up the coding. its a simple dialog trainer, nothing big but here is the main.cpp
as stated credits are to /iMMESiON not me!

http://www.mediafire.com/?dm5m2omzomo

his coding is kinda messy and he states random functions like "aboutButton" instead of just putting a MessageBox where the WM_COMMAND but it still gives a simple idea on a trainer.


I meant a flash trainer Smile
You failed to understand that I said not all languages will provide you with everything you need.

Commercial software is, safely to say, never and will never be anything close to VB.
Learn a real language, it's not that hard to manually make a window. If you hate doing the mathematics of coordinates and placement, then you shouldn't be programming.
Back to top
View user's profile Send private message
SeVeR
Expert Cheater
Reputation: 0

Joined: 22 Sep 2007
Posts: 126

PostPosted: Wed Jan 16, 2008 6:37 am    Post subject: Reply with quote

Double post pffft. OMFG I POSTED for once in 6 months!
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed Jan 16, 2008 10:22 am    Post subject: Reply with quote

@Naablet

What you pasted was the project file, and form code. A project file that outlines the base of the project, the files it uses, includes, etc. are almost always generated for you. (Not including commandline based compiling by hand Wink for those that want to argue.)

As for your pasted code in VB, you can do ALL of what you are saying by hand in VB as well just like you would in C/C++

You are trying to compare two completely different languages that have two completely different purposes, which doesn't work. VB is 'automatic' because it was created for RAD (rapid application development) where as C/C++ is designed for full control.

However, C++ (which is your focus in your post) does include things just like any other language that have predefined functions and such for you. These include:

STL: http://en.wikipedia.org/wiki/Standard_Template_Library
CSL: http://en.wikipedia.org/wiki/C_standard_library

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Wed Jan 16, 2008 12:32 pm    Post subject: Reply with quote

Renkokuken wrote:
Naablet wrote:
Renkokuken wrote:
Naablet wrote:
slovach wrote:
At the basics, it's the same way you'd make any other trainer, just a few API calls.

No, no dude. It's not just the same.
If u have tried vb then you know that it does most of the code for ya.
It's not the same as VB, it can't be.
If that is your view on coding, you will never get beyond a beginner's level. Not everything will be done for you.

What are you talking about? VB codes like most things for you. Here is an example..

[Removed the eye-sore]

You see?
dosen't you have to manually code this kind of stuff in like c++ and java?

lurc wrote:
heres a trainer template. i found it sumwhere... and just neatend up the coding. its a simple dialog trainer, nothing big but here is the main.cpp
as stated credits are to /iMMESiON not me!

http://www.mediafire.com/?dm5m2omzomo

his coding is kinda messy and he states random functions like "aboutButton" instead of just putting a MessageBox where the WM_COMMAND but it still gives a simple idea on a trainer.


I meant a flash trainer Smile
You failed to understand that I said not all languages will provide you with everything you need.

Commercial software is, safely to say, never and will never be anything close to VB.
Learn a real language, it's not that hard to manually make a window. If you hate doing the mathematics of coordinates and placement, then you shouldn't be programming.

I'm trying to but no1 here wanna help so what for when i'll get stuck? Which i will.

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
MegaForum
Grandmaster Cheater
Reputation: 0

Joined: 20 Aug 2007
Posts: 558

PostPosted: Wed Jan 16, 2008 6:19 pm    Post subject: Reply with quote

I was always under the impression that when creatign a multi part program in c++, u'd often stick with .dll's and then creat a GUI in somethign seperate. I'd like to know the same thing. Razz
Back to top
View user's profile Send private message
MegaForum
Grandmaster Cheater
Reputation: 0

Joined: 20 Aug 2007
Posts: 558

PostPosted: Wed Jan 16, 2008 6:19 pm    Post subject: Reply with quote

I was always under the impression that when creatign a multi part program in c++, u'd often stick with .dll's and then creat a GUI in somethign seperate. I'd like to know the same thing. Razz
Back to top
View user's profile Send private message
killersamurai
Expert Cheater
Reputation: 0

Joined: 10 Sep 2007
Posts: 197
Location: Colorado

PostPosted: Wed Jan 16, 2008 6:56 pm    Post subject: Reply with quote

If you want to do a flash trainer, go with the MFC. You can use ATL, but MFC makes life with activex a lot better (you don't have to create a window or process activex information). You can do pure win32, but it's a pain to deal with activex and not for the faint hearted.

Steps for MFC (is a little different if you are using vc++ 6.0):
Create a MFC project and make it dialog based. Right click on the dialog and click insert activex. Then look for Shockwave Flash Object and click OK. When it gets done, you have to create a class for it. Just right it and click Add variable. Give it a name and press ok on the wizard that pops up. Now you can use functions like LoadMovie and SetVariable. By using the MFC, you don't have to worry about creating the dialog or the activex.

You might need to get a standard edition or better if you are using Visual Studio because I think the express edition doesn't support it.
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 Previous  1, 2, 3
Page 3 of 3

 
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