Results 1 to 13 of 13

Thread: Visual C# question

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2007
    Posts
    153

    Talking Visual C# question

    I have some questions:

    1. What version of C# do I have if I have VS2005?
    2. Is C# better than VB.Net?
    3. Do you still need frameworks to execute your program if created in C# on VS2005?


  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Visual C# question

    1. C# 2005, or 2.0 if you like. 2002 is 1.0, 2003 is 1.1, 2005 is 2.0 and 2008 is 3.0.
    2. That depends on the criteria. The general answer is that they both have their pros and cons.
    3. Every application and library created in a .NET language requires the .NET Framework to function.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2007
    Posts
    153

    Re: Visual C# question

    Are there other compilers which do not require Framework? Because it makes my app looks so "unproffesional"


  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Visual C# question

    Quote Originally Posted by Maglor
    Are there other compilers which do not require Framework? Because it makes my app looks so "unproffesional"
    That's ridiculous. There are thousands, even millions of developers world-wide creating .NET applications and every one of them requires the .NET framework to function. Anyone who has an ATi graphics card already has it installed because the ATi Catalyst Control Centre is a .NET app. Are you trying to say that ATi are unprofessional because their configuration utility requires the .NET Framework? Version 7 of Nero, the most popular disc burning software in the world, requires the .NET Framework to function. Are you saying that that is unprofessional? It's only people who don't understand what the .NET Framework is and what it does that might think that, and it appears that you are one of them. I suggest you do some reading to develop that understanding.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Visual C# question

    Quote Originally Posted by Maglor
    Are there other compilers which do not require Framework?
    Yes, compilers for non-.NET languages.

  6. #6
    Hyperactive Member
    Join Date
    Dec 2006
    Location
    Ubuntu Haters Club
    Posts
    405

    Re: Visual C# question

    Why does it make it look unprofessional? The .NET Framework is very powerful and is included on systems > XP SP2.

    Most machines have the .NET framework installed, and therefore you should be wanting to use the power of it, not the other way round. If your application does the job in hand, there is no reason for it to be unprofessional if it uses the .NET framework.

    Quote Originally Posted by jmcilhinney
    2008 is 3.0.
    2008 is also 3.5.
    » Twitter: @rudi_visser : Website: www.rudiv.se «

    If Apple fixes security flaws, they are heralded as proactive. If Microsoft fixes a security flaw, they finally got around to fixing their buggy OS.

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    May 2007
    Posts
    153

    Re: Visual C# question

    But I always hear people say: "Look that app uses Framework, that must be a real stupid program. Only ****ty programs use frameworks... Real porgram do without"


  8. #8
    Hyperactive Member
    Join Date
    Dec 2006
    Location
    Ubuntu Haters Club
    Posts
    405

    Re: Visual C# question

    Sorry how old are the people that say that?

    The only time I heard somebody say that was in around 2001, when .NET wasn't really fully adopted.

    BTW, C# is .NET's native language, so using that is basically saying that you want to use .NET.
    » Twitter: @rudi_visser : Website: www.rudiv.se «

    If Apple fixes security flaws, they are heralded as proactive. If Microsoft fixes a security flaw, they finally got around to fixing their buggy OS.

  9. #9
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Visual C# question

    Quote Originally Posted by RudiVisser
    2008 is also 3.5.
    The latest version of the .NET Framework is 3.5. The latest version of C# is 3.0.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  10. #10
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Visual C# question

    If you want to build a program that doesn't target the .NET Framework then there are plenty of choices, like Delphi, C++, etc., etc. If you want to use C# then you're targeting the .NET Framework whether you like it or not. There are tools that will recompile your .NET assemblies into native code and break the dependency but they are about US$1000. There are some legitimate reasons for not using the .NET Framework in some specific situations but anyone who says what you quoted in post #7 is, frankly, an idiot.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  11. #11

    Thread Starter
    Addicted Member
    Join Date
    May 2007
    Posts
    153

    Re: Visual C# question

    Ok thanks, I'll try and learn C# now. Knowing VB.Net and C# will be good I think


  12. #12
    Hyperactive Member
    Join Date
    Dec 2006
    Location
    Ubuntu Haters Club
    Posts
    405

    Re: Visual C# question

    I would recommend learning 1 at a time (or do you already know VB.NET?) as they have completely different syntaxes.
    » Twitter: @rudi_visser : Website: www.rudiv.se «

    If Apple fixes security flaws, they are heralded as proactive. If Microsoft fixes a security flaw, they finally got around to fixing their buggy OS.

  13. #13
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Visual C# question

    While I would certainly advocate learning both if you can, I'm inclined to agree with RudiVisser. If you learn one first you can then learn the other later already armed with a fairly good knowledge of the .NET things that apply to all .NET languages. While there's always going to be some confusion (I still get confused between the two at times) you will suffer less if you develop a good working knowledge of one language before tackling the other.

    As RV said though, if you already know VB.NET then you've already taken our advice.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width