Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Managed C++ or C#

Managed C++ or C#

Scheduled Pinned Locked Moved The Lounge
csharpc++dotnetquestionlearning
31 Posts 14 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Garth Watkins
    wrote on last edited by
    #1

    What's your opinion ? Most of my development has been in C++ using MFC for the last couple of years. I'd like to take advantage of the .net framework, but I'm hesitant of learning a new language just when I'm getting comfortable with C++.

    W V Y N D 11 Replies Last reply
    0
    • G Garth Watkins

      What's your opinion ? Most of my development has been in C++ using MFC for the last couple of years. I'd like to take advantage of the .net framework, but I'm hesitant of learning a new language just when I'm getting comfortable with C++.

      W Offline
      W Offline
      wb
      wrote on last edited by
      #2

      I think C# is easy to learn, the syntax is much like C++ (but also as VB :wtf: ) and you have the foreach loop! :)

      N D 2 Replies Last reply
      0
      • G Garth Watkins

        What's your opinion ? Most of my development has been in C++ using MFC for the last couple of years. I'd like to take advantage of the .net framework, but I'm hesitant of learning a new language just when I'm getting comfortable with C++.

        V Offline
        V Offline
        V 0
        wrote on last edited by
        #3

        "Learning" new syntax is the easy part, it's the framework you've got to know. There are many things that are better then C++, but other things aren't, or as many other developers put it, use the right tool for the job. .NET is a very powerful tool, which is nice to add to your skillset. Just do as I do, buy a beginners book, start reading and if your interested, go further. (PS: my advice would be to take a look at Web-dev too, not only winforms) good luck in your quest for knowledge :-). "If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix

        1 Reply Last reply
        0
        • G Garth Watkins

          What's your opinion ? Most of my development has been in C++ using MFC for the last couple of years. I'd like to take advantage of the .net framework, but I'm hesitant of learning a new language just when I'm getting comfortable with C++.

          Y Offline
          Y Offline
          Yulianto
          wrote on last edited by
          #4

          I thinks it depends, C# is easier, Managed C++ is more powerfull.


          Work hard and a bit of luck is the key to success.

          You don`t need to be genius, to be rich.

          R 1 Reply Last reply
          0
          • G Garth Watkins

            What's your opinion ? Most of my development has been in C++ using MFC for the last couple of years. I'd like to take advantage of the .net framework, but I'm hesitant of learning a new language just when I'm getting comfortable with C++.

            N Offline
            N Offline
            Nish Nishant
            wrote on last edited by
            #5

            If you are comfortable with C++, then you should look at the new C++/CLI compiler coming out with Whidbey. Nish


            My blog on C++/CLI, MFC/Win32, .NET - void Nish(char* szBlog); My MVP tips, tricks and essays web site - www.voidnish.com

            1 Reply Last reply
            0
            • W wb

              I think C# is easy to learn, the syntax is much like C++ (but also as VB :wtf: ) and you have the foreach loop! :)

              N Offline
              N Offline
              Nish Nishant
              wrote on last edited by
              #6

              wb wrote: I think C# is easy to learn, the syntax is much like C++ (but also as VB ) and you have the foreach loop! C++/CLI has the for each keyword too (it's spaced in C++ though)


              My blog on C++/CLI, MFC/Win32, .NET - void Nish(char* szBlog); My MVP tips, tricks and essays web site - www.voidnish.com

              A 1 Reply Last reply
              0
              • G Garth Watkins

                What's your opinion ? Most of my development has been in C++ using MFC for the last couple of years. I'd like to take advantage of the .net framework, but I'm hesitant of learning a new language just when I'm getting comfortable with C++.

                D Offline
                D Offline
                Daniel Turini
                wrote on last edited by
                #7

                Learn C#. Managed C++ is not a tool to develop new code - it's horrific. While I love C++ - the good, trusty, old one - Managed C++ is the most horrible thing I've seen in ages. The syntax is ugly - just try to declare a delegate to a function that returns an array of bytes or try to use an untyped dataset and you'll know what I mean. The syntax changed in the next version of Managed C++, and that means that all what you've learned is worth nothing. You'll never really know wether you're using P/Invoke, IJW, native code, or managed code. While this can be a good thing for porting old code, when developing new code, it isn't. Managed C++ has one specific use: easily interface C++ code that still wasn't ported to C# with "higher level" languages, such as C# and VB.NET (another abomination, BTW). Yes, even I am blogging now!

                1 Reply Last reply
                0
                • Y Yulianto

                  I thinks it depends, C# is easier, Managed C++ is more powerfull.


                  Work hard and a bit of luck is the key to success.

                  You don`t need to be genius, to be rich.

                  R Offline
                  R Offline
                  raymonxo
                  wrote on last edited by
                  #8

                  Yes, C# is easier and allows you to be more productive when developing in a purely managed environment. Please explain how Managed C++ is more powerful when developing in a purely managed environment :confused:. I don't believe this to be true.

                  R N 2 Replies Last reply
                  0
                  • R raymonxo

                    Yes, C# is easier and allows you to be more productive when developing in a purely managed environment. Please explain how Managed C++ is more powerful when developing in a purely managed environment :confused:. I don't believe this to be true.

                    R Offline
                    R Offline
                    raymonxo
                    wrote on last edited by
                    #9

                    I forgot to mention, I recommend using C# if you are developing new applications for .NET. C# has a much cleaner syntax than C++; this will be especially true with .NET 2.0 features such as generics. I used to develop in C++ and now that I've been using C# for more than a year I can't imagine going back. C# is so clean and intuitive.

                    N 1 Reply Last reply
                    0
                    • G Garth Watkins

                      What's your opinion ? Most of my development has been in C++ using MFC for the last couple of years. I'd like to take advantage of the .net framework, but I'm hesitant of learning a new language just when I'm getting comfortable with C++.

                      G Offline
                      G Offline
                      Garth Watkins
                      wrote on last edited by
                      #10

                      Well so far it seems as if the general consesus is on going the C# route. Thanks for the comments

                      1 Reply Last reply
                      0
                      • G Garth Watkins

                        What's your opinion ? Most of my development has been in C++ using MFC for the last couple of years. I'd like to take advantage of the .net framework, but I'm hesitant of learning a new language just when I'm getting comfortable with C++.

                        P Offline
                        P Offline
                        Paul Watson
                        wrote on last edited by
                        #11

                        What do you develop? For us web-developers, C# and ASP.NET is a no-brainer (I am not referring to the LAMP crowd.) For WinApp developers though .NET is a tougher decision. regards, Paul Watson South Africa The Code Project

                        N 1 Reply Last reply
                        0
                        • G Garth Watkins

                          What's your opinion ? Most of my development has been in C++ using MFC for the last couple of years. I'd like to take advantage of the .net framework, but I'm hesitant of learning a new language just when I'm getting comfortable with C++.

                          M Offline
                          M Offline
                          Marc Clifton
                          wrote on last edited by
                          #12

                          Well, here's my 2c. The Managed C++ syntax is awful. The .NET framework is nice, but it lacks a lot of things that are basically second nature in MFC. I haven't written a single serious app yet that doesn't require some P/Invoke somewhere because .NET fails to provide some necessary functionality. C# is easy to learn. Knowing both, you can pick which language and framework best meets your needs. Marc MyXaml Advanced Unit Testing

                          N 1 Reply Last reply
                          0
                          • P Paul Watson

                            What do you develop? For us web-developers, C# and ASP.NET is a no-brainer (I am not referring to the LAMP crowd.) For WinApp developers though .NET is a tougher decision. regards, Paul Watson South Africa The Code Project

                            N Offline
                            N Offline
                            Nish Nishant
                            wrote on last edited by
                            #13

                            Paul Watson wrote: I am not referring to the LAMP crowd What's LAMP, Paul?


                            My blog on C++/CLI, MFC/Win32, .NET - void Nish(char* szBlog); My MVP tips, tricks and essays web site - www.voidnish.com

                            P D 2 Replies Last reply
                            0
                            • M Marc Clifton

                              Well, here's my 2c. The Managed C++ syntax is awful. The .NET framework is nice, but it lacks a lot of things that are basically second nature in MFC. I haven't written a single serious app yet that doesn't require some P/Invoke somewhere because .NET fails to provide some necessary functionality. C# is easy to learn. Knowing both, you can pick which language and framework best meets your needs. Marc MyXaml Advanced Unit Testing

                              N Offline
                              N Offline
                              Nish Nishant
                              wrote on last edited by
                              #14

                              Marc Clifton wrote: The Managed C++ syntax is awful Shouldn't that be "was awful", Marc? The new C++/CLI syntax is far superior to the old syntax and is at par with C# as a first class CLI language. Marc Clifton wrote: I haven't written a single serious app yet that doesn't require some P/Invoke somewhere because .NET fails to provide some necessary functionality. Same here :-)


                              My blog on C++/CLI, MFC/Win32, .NET - void Nish(char* szBlog); My MVP tips, tricks and essays web site - www.voidnish.com

                              D M 2 Replies Last reply
                              0
                              • N Nish Nishant

                                Paul Watson wrote: I am not referring to the LAMP crowd What's LAMP, Paul?


                                My blog on C++/CLI, MFC/Win32, .NET - void Nish(char* szBlog); My MVP tips, tricks and essays web site - www.voidnish.com

                                P Offline
                                P Offline
                                Paul Watson
                                wrote on last edited by
                                #15

                                It stands for Linux Apache MySQL and Perl. I think Lauren is quite into it. regards, Paul Watson South Africa The Code Project

                                N 1 Reply Last reply
                                0
                                • P Paul Watson

                                  It stands for Linux Apache MySQL and Perl. I think Lauren is quite into it. regards, Paul Watson South Africa The Code Project

                                  N Offline
                                  N Offline
                                  Nish Nishant
                                  wrote on last edited by
                                  #16

                                  Paul Watson wrote: It stands for Linux Apache MySQL and Perl. I think Lauren is quite into it. Oh okay, thanks.


                                  My blog on C++/CLI, MFC/Win32, .NET - void Nish(char* szBlog); My MVP tips, tricks and essays web site - www.voidnish.com

                                  1 Reply Last reply
                                  0
                                  • N Nish Nishant

                                    Paul Watson wrote: I am not referring to the LAMP crowd What's LAMP, Paul?


                                    My blog on C++/CLI, MFC/Win32, .NET - void Nish(char* szBlog); My MVP tips, tricks and essays web site - www.voidnish.com

                                    D Offline
                                    D Offline
                                    Daniel Turini
                                    wrote on last edited by
                                    #17

                                    Nishant S wrote: What's LAMP, Paul? L inux A pache M ySql P erl/PHP Yes, even I am blogging now!

                                    1 Reply Last reply
                                    0
                                    • R raymonxo

                                      Yes, C# is easier and allows you to be more productive when developing in a purely managed environment. Please explain how Managed C++ is more powerful when developing in a purely managed environment :confused:. I don't believe this to be true.

                                      N Offline
                                      N Offline
                                      Nish Nishant
                                      wrote on last edited by
                                      #18

                                      raymonxo wrote: Please explain how Managed C++ is more powerful when developing in a purely managed environment . I don't believe this to be true. See :- C++: The Most Powerful Language for .NET Framework Programming[^]


                                      My blog on C++/CLI, MFC/Win32, .NET - void Nish(char* szBlog); My MVP tips, tricks and essays web site - www.voidnish.com

                                      1 Reply Last reply
                                      0
                                      • R raymonxo

                                        I forgot to mention, I recommend using C# if you are developing new applications for .NET. C# has a much cleaner syntax than C++; this will be especially true with .NET 2.0 features such as generics. I used to develop in C++ and now that I've been using C# for more than a year I can't imagine going back. C# is so clean and intuitive.

                                        N Offline
                                        N Offline
                                        Nish Nishant
                                        wrote on last edited by
                                        #19

                                        raymonxo wrote: C# has a much cleaner syntax than C++; this will be especially true with .NET 2.0 features such as generics. C++/CLI not only supports generics but also supports templates with managed and unmanaged types giving programmers more options. Nish


                                        My blog on C++/CLI, MFC/Win32, .NET - void Nish(char* szBlog); My MVP tips, tricks and essays web site - www.voidnish.com

                                        J A 2 Replies Last reply
                                        0
                                        • N Nish Nishant

                                          Marc Clifton wrote: The Managed C++ syntax is awful Shouldn't that be "was awful", Marc? The new C++/CLI syntax is far superior to the old syntax and is at par with C# as a first class CLI language. Marc Clifton wrote: I haven't written a single serious app yet that doesn't require some P/Invoke somewhere because .NET fails to provide some necessary functionality. Same here :-)


                                          My blog on C++/CLI, MFC/Win32, .NET - void Nish(char* szBlog); My MVP tips, tricks and essays web site - www.voidnish.com

                                          D Offline
                                          D Offline
                                          Daniel Turini
                                          wrote on last edited by
                                          #20

                                          Nishant S wrote: Shouldn't that be "was awful", Marc? No: it is awful, until MS releases the new C++. While we can play and test with the beta version of the new VS, it's at least irresponsible developing a production software with a beta product which the maker (MS) admits to have tons of bugs and reduced performance due to presence of debugging code. Yes, even I am blogging now!

                                          N 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups