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 


[Question] C++ or C#

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

Joined: 16 Apr 2007
Posts: 447

PostPosted: Sat Apr 12, 2008 11:18 pm    Post subject: [Question] C++ or C# Reply with quote

I have a question for you all.

I have recently started with C++, and I have managed to grasp most of it's basic Concepts.

I then got pretty bored with it ( Don't ask why), so I have decided to move on to C#.

My question is, would having a basic knowledge of C++ (Classes, Functions, Pointers etc...) help me with C#? Are they similar?

Oh yeah, one last thing. Is it possible to make DLL's in C#?

Thanks a ton.

Felgore. Very Happy Very Happy
Back to top
View user's profile Send private message
Pseudo Xero
I post too much
Reputation: 0

Joined: 16 Feb 2007
Posts: 2607

PostPosted: Sat Apr 12, 2008 11:48 pm    Post subject: Reply with quote

C++
_________________
haxory' wrote:
can't VB do anything??
windows is programmed using VB right? correct me if im wrong.

so all things in windows you have like the start menu is a windows form too.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sun Apr 13, 2008 1:33 am    Post subject: Reply with quote

Sure having an understanding of C++ would help learning C#

and no you can't make a 'true' DLL of sorts in .NET
Back to top
View user's profile Send private message
Estx
Expert Cheater
Reputation: 0

Joined: 04 Mar 2008
Posts: 172

PostPosted: Sun Apr 13, 2008 3:45 am    Post subject: Reply with quote

Dynamic Link Libraries from C# will only work with .NET CLR based applications sadly. That and no inline ASM to me is what C# downfalls on, other than that it's a great language.

C++ is more flexible and more powerful than C#, so keep working with C++ at the same time so you can keep your mindset up-to-grade.
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: Sun Apr 13, 2008 8:58 am    Post subject: Reply with quote

Knowing C++ wont give you that much of an advantage when learning C#, for one, C# is entirely based around .NET so things are not setup the same. Along with that its a whole different language so syntax is different. Having the common knowledge of what classes, pointers, etc. are will help in the sense you will understand what they do, but it wont help much when it comes to coding them in the new language.

As for inline ASM with C#:
http://www.codeproject.com/KB/cs/inline_asm_for_c_.aspx

Someone wrote some COM stuff to do inline ASM with C# there apparently, not sure how 'good' it is or accurate. (Or if its even real for that matter.)

And no, C# wont create standard Win32 DLLs.

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

Joined: 16 Apr 2007
Posts: 447

PostPosted: Mon Apr 14, 2008 2:42 am    Post subject: Reply with quote

Ok guys, thanks for the explanations. Very Happy



So overall, you guys think C++ is still the way to go? I've been asking around, and apparently Microsoft is pushing C# instead of C++.
Seeing how Microsoft is such a Powerhouse, I thought that it seemed sensible to start with C# instead.

I think the main reason i was attracted to C# at first was because of how easy it was to make GUI's, and how simple it looked.

Any opposing comments would be handy, so I could see both points of view. Very Happy

Thanks again. Wink
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