| View previous topic :: View next topic |
| Author |
Message |
WafflesFTW Expert Cheater
Reputation: 0
Joined: 21 Mar 2008 Posts: 131
|
Posted: Tue Apr 08, 2008 8:30 pm Post subject: Native vs. Managed C++ |
|
|
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 |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Tue Apr 08, 2008 8:37 pm Post subject: |
|
|
C# > Managed C++
Native can obviously be faster
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Tue Apr 08, 2008 11:19 pm Post subject: |
|
|
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 |
|
 |
WafflesFTW Expert Cheater
Reputation: 0
Joined: 21 Mar 2008 Posts: 131
|
Posted: Wed Apr 09, 2008 1:14 pm Post subject: |
|
|
| So I should be using the MFC/API
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Apr 09, 2008 2:18 pm Post subject: |
|
|
MFC is gross.
just keep it Win32 / dialogs.
|
|
| Back to top |
|
 |
WafflesFTW Expert Cheater
Reputation: 0
Joined: 21 Mar 2008 Posts: 131
|
Posted: Wed Apr 09, 2008 5:18 pm Post subject: |
|
|
| Could you elaborate on that?
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Wed Apr 09, 2008 5:33 pm Post subject: |
|
|
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 |
|
 |
WafflesFTW Expert Cheater
Reputation: 0
Joined: 21 Mar 2008 Posts: 131
|
Posted: Wed Apr 09, 2008 5:39 pm Post subject: |
|
|
| Ok, so I should learn to program in windows using the Win32API. Does anyone know any good tuts on this?
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Thu Apr 10, 2008 12:11 am Post subject: |
|
|
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 |
|
 |
RoBOTNIK How do I cheat?
Reputation: 0
Joined: 10 Apr 2008 Posts: 4
|
Posted: Thu Apr 10, 2008 9:09 pm Post subject: |
|
|
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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Thu Apr 10, 2008 9:19 pm Post subject: |
|
|
| 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 |
|
 |
RoBOTNIK How do I cheat?
Reputation: 0
Joined: 10 Apr 2008 Posts: 4
|
Posted: Thu Apr 10, 2008 9:21 pm Post subject: |
|
|
| 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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Thu Apr 10, 2008 9:23 pm Post subject: |
|
|
| 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 |
|
 |
|