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 


.NET vs. Win32 GUI

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

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Mon Aug 25, 2008 8:26 am    Post subject: .NET vs. Win32 GUI Reply with quote

Which would be a better GUI for a trainer? One made in .NET or in Win32?

.Net is easier, but requires .Net to be installed.

Win32 is harder, but does not need .Net

So which is better?
Back to top
View user's profile Send private message Send e-mail
NothingToShow
Grandmaster Cheater Supreme
Reputation: 0

Joined: 11 Jul 2007
Posts: 1579

PostPosted: Mon Aug 25, 2008 8:28 am    Post subject: Reply with quote

I'd say Win32 since you don't have to install .Net. I think alot users/customers would prefer that aswell.
Back to top
View user's profile Send private message
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Mon Aug 25, 2008 8:28 am    Post subject: Re: .NET vs. Win32 GUI Reply with quote

kitterz wrote:
So which is better?
Win32. Avoid .NET at all costs. If you're doing something, why not to do it properly?
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Mon Aug 25, 2008 9:20 am    Post subject: Reply with quote

Ofcourse .NET is better, more controls, more methods for each control, but use Win32, because first of all, you need .NET to be installed, and in C++ you can do pretty much anything C# can do, maybe it'll take more time and more code, but in C# you can't do anything C++ can, less access to the memory.

I only use .NET if I need something to be done quickly, anything else - C++.

You can also code some .NET classes in C++, for example Form class, Button class, CheckBox class and such to make your GUI coding easier.
Back to top
View user's profile Send private message
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Mon Aug 25, 2008 9:27 am    Post subject: Reply with quote

Symbol wrote:
Ofcourse .NET is better, more controls, more methods for each control, but use Win32, because first of all, you need .NET to be installed, and in C++ you can do pretty much anything C# can do, maybe it'll take more time and more code, but in C# you can't do anything C++ can, less access to the memory.

I only use .NET if I need something to be done quickly, anything else - C++.

You can also code some .NET classes in C++, for example Form class, Button class, CheckBox class and such to make your GUI coding easier.


I see. So is it better to use a Dialoge made with, say resedit, or CreateWindow?
Back to top
View user's profile Send private message Send e-mail
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Mon Aug 25, 2008 9:56 am    Post subject: Reply with quote

Symbol wrote:
Ofcourse .NET is better, more controls, more methods for each control, but use Win32, because first of all, you need .NET to be installed, and in C++ you can do pretty much anything C# can do, maybe it'll take more time and more code, but in C# you can't do anything C++ can, less access to the memory.

I only use .NET if I need something to be done quickly, anything else - C++.

You can also code some .NET classes in C++, for example Form class, Button class, CheckBox class and such to make your GUI coding easier.
Wrong, all the controls in .NET can be made in Win32.

Go with Win32, most trainer's doesn't use special controls and.
If you are going with Win32 you should start with tutorial on how to create windows.


Last edited by HolyBlah on Mon Aug 25, 2008 10:00 am; edited 1 time in total
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Mon Aug 25, 2008 9:57 am    Post subject: Reply with quote

kitterz wrote:
I see. So is it better to use a Dialoge made with, say resedit, or CreateWindow?


Your best option is using resedit to generate code based on a dialog.
Back to top
View user's profile Send private message
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Mon Aug 25, 2008 10:00 am    Post subject: Reply with quote

Flyte wrote:
kitterz wrote:
I see. So is it better to use a Dialoge made with, say resedit, or CreateWindow?


Your best option is using resedit to generate code based on a dialog.


MY best option? I learn fast, and already know the basics of CreateWindow(). It will not take long for me to learn the more advanced controls.

So does this mean CreateWindow() is better? Or Resedit?I
Back to top
View user's profile Send private message Send e-mail
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Mon Aug 25, 2008 11:09 am    Post subject: Reply with quote

kitterz wrote:
MY best option? I learn fast, and already know the basics of CreateWindow(). It will not take long for me to learn the more advanced controls.

So does this mean CreateWindow() is better? Or Resedit?I


I didn't mean it in a personal way, it is the exact same thing I do. What ResEdit does is takes a dialog and creates a whole bunch of CreateWindowEx() statements for you to use in your code. It saves the time of typing it all out and fine tuning the positioning.

Speed of making a dialog and the functionality of code.
Back to top
View user's profile Send private message
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Mon Aug 25, 2008 11:43 am    Post subject: Reply with quote

Flyte wrote:
kitterz wrote:
MY best option? I learn fast, and already know the basics of CreateWindow(). It will not take long for me to learn the more advanced controls.

So does this mean CreateWindow() is better? Or Resedit?I


I didn't mean it in a personal way, it is the exact same thing I do. What ResEdit does is takes a dialog and creates a whole bunch of CreateWindowEx() statements for you to use in your code. It saves the time of typing it all out and fine tuning the positioning.

Speed of making a dialog and the functionality of code.


I see. I am sorry for the asumption. Annyways, which is better, Unicode? Ansi? (or whatever it is, i cannt remeber)
Back to top
View user's profile Send private message Send e-mail
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Mon Aug 25, 2008 11:53 am    Post subject: Reply with quote

kitterz wrote:
I see. I am sorry for the asumption. Annyways, which is better, Unicode? Ansi? (or whatever it is, i cannt remeber)


Unicode.
Back to top
View user's profile Send private message
nog_lorp
Grandmaster Cheater
Reputation: 0

Joined: 26 Feb 2006
Posts: 743

PostPosted: Mon Aug 25, 2008 1:06 pm    Post subject: Reply with quote

Cons: Unicode isn't necessary unless you want to make your program multilingual, and is a little bit of a nuisance to use (using macros on every one of your static strings).

Pros: Unicode is futureproof/best practice, and all of the A functions actually are wrappers to the W functions, so it is more efficient to use unicode (removes 1+ function call in the library per function call in your code).

.NET vs Win32: Anything you can do in .NET you can do in Win32 since .NET all ends up resolving to Win32 anyways (at runtime). The choice is:
.NET: slightly easier.
Win32: much faster, more compact code, no annoying shit to install.

Go with Win32. Also, memory editing in C# can be done with really painful fucked up use of System.Runtime.InteropServices.Marshal.

~nog_lorp

_________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish
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
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