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 


Native vs. Managed C++

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
WafflesFTW
Expert Cheater
Reputation: 0

Joined: 21 Mar 2008
Posts: 131

PostPosted: Tue Apr 08, 2008 8:30 pm    Post subject: Native vs. Managed C++ Reply with quote

Alrighty, I've gotten to that point in C++ after learning about classes, inheritance, etc and before learning the API. I have learned both managed C++(CLR) and native C++. To create bots and trainers, which is the more efficient route to take from this point. I plan on learning both eventually for windows programming, but from a starting standpoint, which would be able to semi efficiently produce GUIs(Doesn't have to be windows forms fast, just not a snail s pace), while retaining a large amount of flexibility and power?

Thanks in advance,
Waffles
Back to top
View user's profile Send private message AIM Address
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Tue Apr 08, 2008 8:37 pm    Post subject: Reply with quote

C# > Managed C++

Native can obviously be faster
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: Tue Apr 08, 2008 11:19 pm    Post subject: Reply with quote

C++ and .NET should never be paired together in my opinion. You are taking something that has been upgraded over the past to become an incredible language, then combining it with a horrible framework that is designed poorly and creates more hassle then it's worth. Not the best of things to go hand in hand in my opinion.

I agree with slovach here, if you wish to use .NET in your application(s), goto C#, but if you want to stick with C++ stay native.

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

Joined: 21 Mar 2008
Posts: 131

PostPosted: Wed Apr 09, 2008 1:14 pm    Post subject: Reply with quote

So I should be using the MFC/API
Back to top
View user's profile Send private message AIM Address
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Apr 09, 2008 2:18 pm    Post subject: Reply with quote

MFC is gross.

just keep it Win32 / dialogs.
Back to top
View user's profile Send private message
WafflesFTW
Expert Cheater
Reputation: 0

Joined: 21 Mar 2008
Posts: 131

PostPosted: Wed Apr 09, 2008 5:18 pm    Post subject: Reply with quote

Could you elaborate on that?
Back to top
View user's profile Send private message AIM Address
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Wed Apr 09, 2008 5:33 pm    Post subject: Reply with quote

MFC is kinda like a Mini.NET, yet has the same idea:
To completely ruin the point of C++; Small, Fast, Optimized Programs.

_________________
Back to top
View user's profile Send private message
WafflesFTW
Expert Cheater
Reputation: 0

Joined: 21 Mar 2008
Posts: 131

PostPosted: Wed Apr 09, 2008 5:39 pm    Post subject: Reply with quote

Ok, so I should learn to program in windows using the Win32API. Does anyone know any good tuts on this?
Back to top
View user's profile Send private message AIM Address
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Wed Apr 09, 2008 5:42 pm    Post subject: Reply with quote

theForger's Win32 API Programming Tutorial
_________________
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: Thu Apr 10, 2008 12:11 am    Post subject: Reply with quote

MFC:
http://en.wikipedia.org/wiki/Microsoft_Foundation_Class_Library

Not going really sit here and explain what it is, but, in my opinion it's just a macro driven version of the Win32 API wrapped in classes. It, to me, is more confusing then using things yourself via the API. Don't get me wrong though, I love classes, they are a wonderful thing added to the C language. But MFC just over does things a bit much and creates more hassle and headache when you look at code.

MFC is widely used though, for creating dialog based applications in a big production, MFC can have its benefits, but it also has it's limitations to what the class and wrappers are set to do. While using pure Win32, you have the limits of the OS and language itself and not on premade classes.

Just remember there is no 'best', everything is made for a purpose to achieve better results over something else on a specific topic. Do what you feel is best for your own abilities.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
RoBOTNIK
How do I cheat?
Reputation: 0

Joined: 10 Apr 2008
Posts: 4

PostPosted: Thu Apr 10, 2008 9:09 pm    Post subject: Reply with quote

MFC is good for those who know how to use it. Though it does add extra garbage code and can slow down your application, it's not that bad - that is if you know how to handle it.

I still prefer Win32 API over MFC. WxWidgets (using WxDev) is better then both. It's easier to use, multi platform and fast.
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: Thu Apr 10, 2008 9:19 pm    Post subject: Reply with quote

RoBOTNIK wrote:
MFC is good for those who know how to use it. Though it does add extra garbage code and can slow down your application, it's not that bad - that is if you know how to handle it.

I still prefer Win32 API over MFC. WxWidgets (using WxDev) is better then both. It's easier to use, multi platform and fast.


wxWidgets is basically doing the same thing as MFC, you are using a premade lib to handle the GUI functions and creation. Either way you are adding more to the project then what is needed over doing everything yourself by hand, which really isn't that hard to do.

I do agree, wxWidgets is nice, but it's a bit much for small projects.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
RoBOTNIK
How do I cheat?
Reputation: 0

Joined: 10 Apr 2008
Posts: 4

PostPosted: Thu Apr 10, 2008 9:21 pm    Post subject: Reply with quote

Wiccaan wrote:
RoBOTNIK wrote:
MFC is good for those who know how to use it. Though it does add extra garbage code and can slow down your application, it's not that bad - that is if you know how to handle it.

I still prefer Win32 API over MFC. WxWidgets (using WxDev) is better then both. It's easier to use, multi platform and fast.


wxWidgets is basically doing the same thing as MFC, you are using a premade lib to handle the GUI functions and creation. Either way you are adding more to the project then what is needed over doing everything yourself by hand, which really isn't that hard to do.

I do agree, wxWidgets is nice, but it's a bit much for small projects.


wxWidgets is a lot faster then MFC and is multi-platform. I would choose wxWidgets over MFC any day.
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: Thu Apr 10, 2008 9:23 pm    Post subject: Reply with quote

RoBOTNIK wrote:
Wiccaan wrote:
RoBOTNIK wrote:
MFC is good for those who know how to use it. Though it does add extra garbage code and can slow down your application, it's not that bad - that is if you know how to handle it.

I still prefer Win32 API over MFC. WxWidgets (using WxDev) is better then both. It's easier to use, multi platform and fast.


wxWidgets is basically doing the same thing as MFC, you are using a premade lib to handle the GUI functions and creation. Either way you are adding more to the project then what is needed over doing everything yourself by hand, which really isn't that hard to do.

I do agree, wxWidgets is nice, but it's a bit much for small projects.


wxWidgets is a lot faster then MFC and is multi-platform. I would choose wxWidgets over MFC any day.


Oh, I wasn't saying that lol. I do agree it's a lot faster. I wasn't comparing it in that sense.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming 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