| View previous topic :: View next topic |
| Author |
Message |
Felgore Master Cheater
Reputation: 0
Joined: 16 Apr 2007 Posts: 447
|
Posted: Sat Apr 12, 2008 11:18 pm Post subject: [Question] C++ or C# |
|
|
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.
|
|
| Back to top |
|
 |
Pseudo Xero I post too much
Reputation: 0
Joined: 16 Feb 2007 Posts: 2607
|
Posted: Sat Apr 12, 2008 11:48 pm Post subject: |
|
|
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 |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Sun Apr 13, 2008 1:33 am Post subject: |
|
|
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 |
|
 |
Estx Expert Cheater
Reputation: 0
Joined: 04 Mar 2008 Posts: 172
|
Posted: Sun Apr 13, 2008 3:45 am Post subject: |
|
|
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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Sun Apr 13, 2008 8:58 am Post subject: |
|
|
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 |
|
 |
Felgore Master Cheater
Reputation: 0
Joined: 16 Apr 2007 Posts: 447
|
Posted: Mon Apr 14, 2008 2:42 am Post subject: |
|
|
Ok guys, thanks for the explanations.
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.
Thanks again.
|
|
| Back to top |
|
 |
|