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. Finally figured out why C++ is losing the battle with C#

Finally figured out why C++ is losing the battle with C#

Scheduled Pinned Locked Moved The Lounge
csharpc++visual-studiocsswinforms
49 Posts 25 Posters 0 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.
  • N Nish Nishant

    [MOD]Hey everyone, I am talking in the context of Visual Studio 2005 development here. I am well aware that C++ has its extensive uses. But for developing Windows Forms apps, VS 2005 has far better functionality for C# compared to what it has for C++[/MOD] No, it's not because C# is a better language - egad, what a thought! And no, it's not that C# is easier to learn and use, far from it in fact! The answer is - Visual Studio 2005! If you use it to do C#, it's very very hard to go back to doing C++ with it. Imagine driving an automatic BMW and then having to drive a manual Maruthi 800 (it's a car available only in India and barely fits the definition of what a car should be). VS 2005 may be slow and unstable for C++, but so far, with C# it's been astonishingly wonderful! CG often teases me saying that I am one of 5 people on earth who do C++ on .NET! I just hope the other 4 don't see VS.NET with C#, cause if they do, I am going to be the only one left :~ I don't know who to thank for this - since I have no idea who heads the VS.NET UI team in Redmond. So I'll just thank myself, and buy myself a drink today :-D Regards, Nish


    Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
    The Ultimate Grid - The #1 MFC grid out there!

    -- modified at 10:54 Sunday 19th February, 2006

    H Offline
    H Offline
    Hamed Musavi
    wrote on last edited by
    #6

    I'm the sixth one!! I love C++ more. I decided to learn C# three times and all failier! just because I can't write a code I don't enjoy. Your blog and idea used to be heartsome to me, now I'm shaking and fully mixed up:confused: 'Do you think MFC and C++ will not die, yet?' //This is not a signature while (I'm_alive) {    printf("I Love Programming"); }

    N 1 Reply Last reply
    0
    • N Nish Nishant

      [MOD]Hey everyone, I am talking in the context of Visual Studio 2005 development here. I am well aware that C++ has its extensive uses. But for developing Windows Forms apps, VS 2005 has far better functionality for C# compared to what it has for C++[/MOD] No, it's not because C# is a better language - egad, what a thought! And no, it's not that C# is easier to learn and use, far from it in fact! The answer is - Visual Studio 2005! If you use it to do C#, it's very very hard to go back to doing C++ with it. Imagine driving an automatic BMW and then having to drive a manual Maruthi 800 (it's a car available only in India and barely fits the definition of what a car should be). VS 2005 may be slow and unstable for C++, but so far, with C# it's been astonishingly wonderful! CG often teases me saying that I am one of 5 people on earth who do C++ on .NET! I just hope the other 4 don't see VS.NET with C#, cause if they do, I am going to be the only one left :~ I don't know who to thank for this - since I have no idea who heads the VS.NET UI team in Redmond. So I'll just thank myself, and buy myself a drink today :-D Regards, Nish


      Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
      The Ultimate Grid - The #1 MFC grid out there!

      -- modified at 10:54 Sunday 19th February, 2006

      A Offline
      A Offline
      Andre xxxxxxx
      wrote on last edited by
      #7

      Hi Nishant, first I want to say that i have the book "Extending MFC Applications with the .NET Framework" on my desk now ;) I have to agree with you that VS2005 is poor for C++ development. Friday i've compiled a MFC project with 200'000 LOC with VS2005, it took like 10-20 times longer than with VS6. The IDE has so many glitches, easiest tasks like Find&Replace doesn't work well. But the MFC and compiler have some improvements, so for me that means until SP1 I will continue to use VS6 for development and VS2005 only to compile it when it's ready for release and testing. But I disagree with you that C++ will loose the battle with C#. Because there isn't one. C# is growing fast, but not at the expense of C++. The main competition is between C# and VB. If Microsoft decides to drop VBA with Office 12 (now officialy Office 2007, they've learned there leason from VS2005 :-D ) VB will loose popularity fast. But C# can't replace C++ that easily. First, there is a large legacy codebase, it would take years and decades to rewrite it. Second, not everything can be written in C#. Ever tried to program a device driver or microcontroller with C#? I'm also still waiting for the first .NET app that i install on my PC. Office 12? A managed wrapper for the COM interface is everything you can call .NET :laugh: AutoCAD 2006? MFC. So where are all the .NET apps? But back to the topic, i guess most C++ developers will use C++/CLI for managed code. Also as long as the .NET framework is not installed on at least 90% of the Windows PCs i won't extend my MFC app with any managed crap. There is also a great blog where MS employees bash each other for VS2005 :laugh: http://minimsft.blogspot.com/2005/11/hey-shareholders-vs-2005-is-fantastic.html[^]

      N S R 3 Replies Last reply
      0
      • N Nish Nishant

        [MOD]Hey everyone, I am talking in the context of Visual Studio 2005 development here. I am well aware that C++ has its extensive uses. But for developing Windows Forms apps, VS 2005 has far better functionality for C# compared to what it has for C++[/MOD] No, it's not because C# is a better language - egad, what a thought! And no, it's not that C# is easier to learn and use, far from it in fact! The answer is - Visual Studio 2005! If you use it to do C#, it's very very hard to go back to doing C++ with it. Imagine driving an automatic BMW and then having to drive a manual Maruthi 800 (it's a car available only in India and barely fits the definition of what a car should be). VS 2005 may be slow and unstable for C++, but so far, with C# it's been astonishingly wonderful! CG often teases me saying that I am one of 5 people on earth who do C++ on .NET! I just hope the other 4 don't see VS.NET with C#, cause if they do, I am going to be the only one left :~ I don't know who to thank for this - since I have no idea who heads the VS.NET UI team in Redmond. So I'll just thank myself, and buy myself a drink today :-D Regards, Nish


        Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
        The Ultimate Grid - The #1 MFC grid out there!

        -- modified at 10:54 Sunday 19th February, 2006

        J Offline
        J Offline
        J Dunlap
        wrote on last edited by
        #8

        That's one of the reasons I like working with C# so much. Another reason is that it's very expressive in a clean and neat way. Not too verbose (as VB is), not requiring extra constructs other than what is needed to express the code concept/construct at hand, and not cryptic as far as "at-a-glance readability" goes (both of which are complaints that I have with C++, although C++/CLI is not too bad). It just goes straight to the point - expressing constructs and concepts as clearly, simply, and cleanly as possible - and that's what I want most in a language. :cool:

        1 Reply Last reply
        0
        • N Nish Nishant

          [MOD]Hey everyone, I am talking in the context of Visual Studio 2005 development here. I am well aware that C++ has its extensive uses. But for developing Windows Forms apps, VS 2005 has far better functionality for C# compared to what it has for C++[/MOD] No, it's not because C# is a better language - egad, what a thought! And no, it's not that C# is easier to learn and use, far from it in fact! The answer is - Visual Studio 2005! If you use it to do C#, it's very very hard to go back to doing C++ with it. Imagine driving an automatic BMW and then having to drive a manual Maruthi 800 (it's a car available only in India and barely fits the definition of what a car should be). VS 2005 may be slow and unstable for C++, but so far, with C# it's been astonishingly wonderful! CG often teases me saying that I am one of 5 people on earth who do C++ on .NET! I just hope the other 4 don't see VS.NET with C#, cause if they do, I am going to be the only one left :~ I don't know who to thank for this - since I have no idea who heads the VS.NET UI team in Redmond. So I'll just thank myself, and buy myself a drink today :-D Regards, Nish


          Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
          The Ultimate Grid - The #1 MFC grid out there!

          -- modified at 10:54 Sunday 19th February, 2006

          A Offline
          A Offline
          Andre xxxxxxx
          wrote on last edited by
          #9

          Nishant Sivakumar wrote:

          VS 2005 may be slow and unstable for C++,

          I have great news for you, "In [Windows Vista] Beta 2 the crash reporting experience for VS will be improved." :laugh: http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx?FeedbackId=322ae430-60f9-4ce2-bd4f-db88de777a79[^]

          N 1 Reply Last reply
          0
          • N Nish Nishant

            [MOD]Hey everyone, I am talking in the context of Visual Studio 2005 development here. I am well aware that C++ has its extensive uses. But for developing Windows Forms apps, VS 2005 has far better functionality for C# compared to what it has for C++[/MOD] No, it's not because C# is a better language - egad, what a thought! And no, it's not that C# is easier to learn and use, far from it in fact! The answer is - Visual Studio 2005! If you use it to do C#, it's very very hard to go back to doing C++ with it. Imagine driving an automatic BMW and then having to drive a manual Maruthi 800 (it's a car available only in India and barely fits the definition of what a car should be). VS 2005 may be slow and unstable for C++, but so far, with C# it's been astonishingly wonderful! CG often teases me saying that I am one of 5 people on earth who do C++ on .NET! I just hope the other 4 don't see VS.NET with C#, cause if they do, I am going to be the only one left :~ I don't know who to thank for this - since I have no idea who heads the VS.NET UI team in Redmond. So I'll just thank myself, and buy myself a drink today :-D Regards, Nish


            Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
            The Ultimate Grid - The #1 MFC grid out there!

            -- modified at 10:54 Sunday 19th February, 2006

            D Offline
            D Offline
            devvvy
            wrote on last edited by
            #10

            Some of the stealthiest rootkits are writtine in C (www.rootkit.com). Take a look at FU the kernel level rootkit, with Direct Kernel Object Manipulation it's able to hide process without resorting to hooks. Some hardcore nuts...

            N 1 Reply Last reply
            0
            • D devvvy

              Some of the stealthiest rootkits are writtine in C (www.rootkit.com). Take a look at FU the kernel level rootkit, with Direct Kernel Object Manipulation it's able to hide process without resorting to hooks. Some hardcore nuts...

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

              norm wrote:

              Some of the stealthiest rootkits are writtine in C (www.rootkit.com). Take a look at FU the kernel level rootkit, with Direct Kernel Object Manipulation it's able to hide process without resorting to hooks. Some hardcore nuts...

              What's that got to with anything here? :~ Regards, Nish


              Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
              The Ultimate Grid - The #1 MFC grid out there!

              1 Reply Last reply
              0
              • A Andre xxxxxxx

                Nishant Sivakumar wrote:

                VS 2005 may be slow and unstable for C++,

                I have great news for you, "In [Windows Vista] Beta 2 the crash reporting experience for VS will be improved." :laugh: http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx?FeedbackId=322ae430-60f9-4ce2-bd4f-db88de777a79[^]

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

                ABuenger wrote:

                I have great news for you, "In [Windows Vista] Beta 2 the crash reporting experience for VS will be improved."

                :) Regards, Nish


                Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                The Ultimate Grid - The #1 MFC grid out there!

                1 Reply Last reply
                0
                • H Hamed Musavi

                  I'm the sixth one!! I love C++ more. I decided to learn C# three times and all failier! just because I can't write a code I don't enjoy. Your blog and idea used to be heartsome to me, now I'm shaking and fully mixed up:confused: 'Do you think MFC and C++ will not die, yet?' //This is not a signature while (I'm_alive) {    printf("I Love Programming"); }

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

                  Hamed Mosavi wrote:

                  now I'm shaking and fully mixed up 'Do you think MFC and C++ will not die, yet?'

                  Of course it won't die. However poorer the user-experience is when you do C++, there are so many reasons to continue using MFC, ATL etc. possibly in conjunction with C++/CLI. I only do MFC at work, and I mostly do C++/CLI at home. But if I had a choice, I'd probably use C# to write a windows forms based desktop app in VS 2005. Regards, Nish


                  Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                  The Ultimate Grid - The #1 MFC grid out there!

                  -- modified at 7:58 Sunday 19th February, 2006

                  A L 2 Replies Last reply
                  0
                  • A Andre xxxxxxx

                    Hi Nishant, first I want to say that i have the book "Extending MFC Applications with the .NET Framework" on my desk now ;) I have to agree with you that VS2005 is poor for C++ development. Friday i've compiled a MFC project with 200'000 LOC with VS2005, it took like 10-20 times longer than with VS6. The IDE has so many glitches, easiest tasks like Find&Replace doesn't work well. But the MFC and compiler have some improvements, so for me that means until SP1 I will continue to use VS6 for development and VS2005 only to compile it when it's ready for release and testing. But I disagree with you that C++ will loose the battle with C#. Because there isn't one. C# is growing fast, but not at the expense of C++. The main competition is between C# and VB. If Microsoft decides to drop VBA with Office 12 (now officialy Office 2007, they've learned there leason from VS2005 :-D ) VB will loose popularity fast. But C# can't replace C++ that easily. First, there is a large legacy codebase, it would take years and decades to rewrite it. Second, not everything can be written in C#. Ever tried to program a device driver or microcontroller with C#? I'm also still waiting for the first .NET app that i install on my PC. Office 12? A managed wrapper for the COM interface is everything you can call .NET :laugh: AutoCAD 2006? MFC. So where are all the .NET apps? But back to the topic, i guess most C++ developers will use C++/CLI for managed code. Also as long as the .NET framework is not installed on at least 90% of the Windows PCs i won't extend my MFC app with any managed crap. There is also a great blog where MS employees bash each other for VS2005 :laugh: http://minimsft.blogspot.com/2005/11/hey-shareholders-vs-2005-is-fantastic.html[^]

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

                    ABuenger wrote:

                    But I disagree with you that C++ will loose the battle with C#.

                    You are reading too much into my primarily humorous post :-) My main point was that, the C# user-experience for VS.NET is a few dozen times better than that for C++. Regards, Nish


                    Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                    The Ultimate Grid - The #1 MFC grid out there!

                    A 1 Reply Last reply
                    0
                    • N Nish Nishant

                      ABuenger wrote:

                      But I disagree with you that C++ will loose the battle with C#.

                      You are reading too much into my primarily humorous post :-) My main point was that, the C# user-experience for VS.NET is a few dozen times better than that for C++. Regards, Nish


                      Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                      The Ultimate Grid - The #1 MFC grid out there!

                      A Offline
                      A Offline
                      Andre xxxxxxx
                      wrote on last edited by
                      #15

                      Nishant Sivakumar wrote:

                      My main point was that, the C# user-experience for VS.NET is a few dozen times better than that for C++.

                      MS pushes C#, that's also the reason why it is included in the Express Edition and C++ not. Same think what they did with eVC, first it's free and than you've got to pay. It's the same strategy of drug dealers, where the first pill is free too. I hope that everyone who reads you post understand that it was humorous and that the message is not "use VS2005 and C#" but should be "stay away from VS2005 until SP1". But i'm not sure if this is true for users of VS2002 and VS2003, because they are buggy too and there are some improvements for .NET developers. André

                      N 1 Reply Last reply
                      0
                      • N Nish Nishant

                        [MOD]Hey everyone, I am talking in the context of Visual Studio 2005 development here. I am well aware that C++ has its extensive uses. But for developing Windows Forms apps, VS 2005 has far better functionality for C# compared to what it has for C++[/MOD] No, it's not because C# is a better language - egad, what a thought! And no, it's not that C# is easier to learn and use, far from it in fact! The answer is - Visual Studio 2005! If you use it to do C#, it's very very hard to go back to doing C++ with it. Imagine driving an automatic BMW and then having to drive a manual Maruthi 800 (it's a car available only in India and barely fits the definition of what a car should be). VS 2005 may be slow and unstable for C++, but so far, with C# it's been astonishingly wonderful! CG often teases me saying that I am one of 5 people on earth who do C++ on .NET! I just hope the other 4 don't see VS.NET with C#, cause if they do, I am going to be the only one left :~ I don't know who to thank for this - since I have no idea who heads the VS.NET UI team in Redmond. So I'll just thank myself, and buy myself a drink today :-D Regards, Nish


                        Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                        The Ultimate Grid - The #1 MFC grid out there!

                        -- modified at 10:54 Sunday 19th February, 2006

                        M Offline
                        M Offline
                        Mircea Grelus
                        wrote on last edited by
                        #16

                        Nishant Sivakumar wrote:

                        Imagine driving an automatic BMW

                        Now why did you have to compare it with automatic gear? You feel the real pleasure of driving using the manual stick. I hate automatics.;) :rolleyes: regards, Mircea Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.

                        N 1 Reply Last reply
                        0
                        • N Nish Nishant

                          Hamed Mosavi wrote:

                          now I'm shaking and fully mixed up 'Do you think MFC and C++ will not die, yet?'

                          Of course it won't die. However poorer the user-experience is when you do C++, there are so many reasons to continue using MFC, ATL etc. possibly in conjunction with C++/CLI. I only do MFC at work, and I mostly do C++/CLI at home. But if I had a choice, I'd probably use C# to write a windows forms based desktop app in VS 2005. Regards, Nish


                          Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                          The Ultimate Grid - The #1 MFC grid out there!

                          -- modified at 7:58 Sunday 19th February, 2006

                          A Offline
                          A Offline
                          Andre xxxxxxx
                          wrote on last edited by
                          #17

                          Nishant Sivakumar wrote:

                          But if I had a choice, I'd probably use C# to write a windows forms based desktop app in VS 2005.

                          I thought about that too, using Windows Forms in my MFC app. But the WinForms controls have failed to impress me. While the list what i can to with WinForms that i can't do with MFC is short or empty, the list what i can't do with WinForms is pretty long: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vclrfWindowsFormsForMFCProgrammers.asp[^] Microsoft also missed the change to get me to use WinForms - there is no ribbon control. That would have been a reason to use WinForms. But it's the same as with the common controls, while their customers get controls that "don't cut it", they don't share the other controls with us. Btw. judging by Winspector Spy, the ribbon isn't even a managed control. Also knowing that WinForms is outdated with the arrival of WPF, why should i jump on the bangwagon? But judging by the Orcas CTP i doubt that i will start to use WPF anytime soon, except the memory consumption nothing else worked in the CTP for me.

                          1 Reply Last reply
                          0
                          • A Andre xxxxxxx

                            Nishant Sivakumar wrote:

                            My main point was that, the C# user-experience for VS.NET is a few dozen times better than that for C++.

                            MS pushes C#, that's also the reason why it is included in the Express Edition and C++ not. Same think what they did with eVC, first it's free and than you've got to pay. It's the same strategy of drug dealers, where the first pill is free too. I hope that everyone who reads you post understand that it was humorous and that the message is not "use VS2005 and C#" but should be "stay away from VS2005 until SP1". But i'm not sure if this is true for users of VS2002 and VS2003, because they are buggy too and there are some improvements for .NET developers. André

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

                            ABuenger wrote:

                            MS pushes C#, that's also the reason why it is included in the Express Edition and C++ not.

                            There's a VC++ 2005 Express Edition available for free. Regards, Nish


                            Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                            The Ultimate Grid - The #1 MFC grid out there!

                            A 1 Reply Last reply
                            0
                            • M Mircea Grelus

                              Nishant Sivakumar wrote:

                              Imagine driving an automatic BMW

                              Now why did you have to compare it with automatic gear? You feel the real pleasure of driving using the manual stick. I hate automatics.;) :rolleyes: regards, Mircea Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.

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

                              Mircea Grelus wrote:

                              Now why did you have to compare it with automatic gear? You feel the real pleasure of driving using the manual stick. I hate automatics.

                              In India, I've only driven manuals, and in Canada only automatics :-) Regards, Nish


                              Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                              The Ultimate Grid - The #1 MFC grid out there!

                              M 1 Reply Last reply
                              0
                              • N Nish Nishant

                                ABuenger wrote:

                                MS pushes C#, that's also the reason why it is included in the Express Edition and C++ not.

                                There's a VC++ 2005 Express Edition available for free. Regards, Nish


                                Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                                The Ultimate Grid - The #1 MFC grid out there!

                                A Offline
                                A Offline
                                Andre xxxxxxx
                                wrote on last edited by
                                #20

                                Nishant Sivakumar wrote:

                                There's a VC++ 2005 Express Edition available for free.

                                Including MFC? ;)

                                B 1 Reply Last reply
                                0
                                • N Nish Nishant

                                  [MOD]Hey everyone, I am talking in the context of Visual Studio 2005 development here. I am well aware that C++ has its extensive uses. But for developing Windows Forms apps, VS 2005 has far better functionality for C# compared to what it has for C++[/MOD] No, it's not because C# is a better language - egad, what a thought! And no, it's not that C# is easier to learn and use, far from it in fact! The answer is - Visual Studio 2005! If you use it to do C#, it's very very hard to go back to doing C++ with it. Imagine driving an automatic BMW and then having to drive a manual Maruthi 800 (it's a car available only in India and barely fits the definition of what a car should be). VS 2005 may be slow and unstable for C++, but so far, with C# it's been astonishingly wonderful! CG often teases me saying that I am one of 5 people on earth who do C++ on .NET! I just hope the other 4 don't see VS.NET with C#, cause if they do, I am going to be the only one left :~ I don't know who to thank for this - since I have no idea who heads the VS.NET UI team in Redmond. So I'll just thank myself, and buy myself a drink today :-D Regards, Nish


                                  Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                                  The Ultimate Grid - The #1 MFC grid out there!

                                  -- modified at 10:54 Sunday 19th February, 2006

                                  realJSOPR Offline
                                  realJSOPR Offline
                                  realJSOP
                                  wrote on last edited by
                                  #21

                                  Maybe if you had decent hardware, you wouldn't have performance issues with VS2005. I certainly don't have those issues. You should also qualify your choice of language. C# (and it's bastard brother VB) is the LAST language I would choose for a desktop app. If you want better performance and a smaller footprint, unmanaged C++ is the way to go. Managed C++ (or any other language for that matter) is for people who don't have the knowledge, skill, or talent to use pointers, or are simply lazy. I see managed code as a way to support outsourcing because a lot less talent is required to actually write the code. ------- sig starts "I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                                  J X 2 Replies Last reply
                                  0
                                  • N Nish Nishant

                                    [MOD]Hey everyone, I am talking in the context of Visual Studio 2005 development here. I am well aware that C++ has its extensive uses. But for developing Windows Forms apps, VS 2005 has far better functionality for C# compared to what it has for C++[/MOD] No, it's not because C# is a better language - egad, what a thought! And no, it's not that C# is easier to learn and use, far from it in fact! The answer is - Visual Studio 2005! If you use it to do C#, it's very very hard to go back to doing C++ with it. Imagine driving an automatic BMW and then having to drive a manual Maruthi 800 (it's a car available only in India and barely fits the definition of what a car should be). VS 2005 may be slow and unstable for C++, but so far, with C# it's been astonishingly wonderful! CG often teases me saying that I am one of 5 people on earth who do C++ on .NET! I just hope the other 4 don't see VS.NET with C#, cause if they do, I am going to be the only one left :~ I don't know who to thank for this - since I have no idea who heads the VS.NET UI team in Redmond. So I'll just thank myself, and buy myself a drink today :-D Regards, Nish


                                    Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                                    The Ultimate Grid - The #1 MFC grid out there!

                                    -- modified at 10:54 Sunday 19th February, 2006

                                    R Offline
                                    R Offline
                                    Ravi Bhavnani
                                    wrote on last edited by
                                    #22

                                    Nishant Sivakumar wrote:

                                    VS 2005 may be slow and unstable for C++, but so far, with C# it's been astonishingly wonderful!

                                    It truly is! :cool: OTOH, have you encountered the problem of VS2005 hanging (CPU usage hits 10-20%) when expanding a partial class in the Class View? It seems to happen consistently for me. Since many of my classes are large enough to be distributed among several source files, I've got in the habit of staying away from the Class View, which is unfortunate since it's a useful tool. /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

                                    1 Reply Last reply
                                    0
                                    • N Nish Nishant

                                      Mircea Grelus wrote:

                                      Now why did you have to compare it with automatic gear? You feel the real pleasure of driving using the manual stick. I hate automatics.

                                      In India, I've only driven manuals, and in Canada only automatics :-) Regards, Nish


                                      Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
                                      The Ultimate Grid - The #1 MFC grid out there!

                                      M Offline
                                      M Offline
                                      Mircea Grelus
                                      wrote on last edited by
                                      #23

                                      And which do you like best manual or automatic? I've driven an automatic only once and I don't like it. Manuals are my type definitely. At leat with manual you get the feeling of actually driving. regards, Mircea Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.

                                      1 Reply Last reply
                                      0
                                      • realJSOPR realJSOP

                                        Maybe if you had decent hardware, you wouldn't have performance issues with VS2005. I certainly don't have those issues. You should also qualify your choice of language. C# (and it's bastard brother VB) is the LAST language I would choose for a desktop app. If you want better performance and a smaller footprint, unmanaged C++ is the way to go. Managed C++ (or any other language for that matter) is for people who don't have the knowledge, skill, or talent to use pointers, or are simply lazy. I see managed code as a way to support outsourcing because a lot less talent is required to actually write the code. ------- sig starts "I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                                        J Offline
                                        J Offline
                                        Jeremy Falcon
                                        wrote on last edited by
                                        #24

                                        John Simmons / outlaw programmer wrote:

                                        I see managed code as a way to support outsourcing because a lot less talent is required to actually write the code.

                                        .NET is basically replacing the old, classic VB market. That's a large market -- whic is business logic/db apps. I doubt I'll see apps like Photoshop move over though. Jeremy Falcon

                                        1 Reply Last reply
                                        0
                                        • A Andre xxxxxxx

                                          Hi Nishant, first I want to say that i have the book "Extending MFC Applications with the .NET Framework" on my desk now ;) I have to agree with you that VS2005 is poor for C++ development. Friday i've compiled a MFC project with 200'000 LOC with VS2005, it took like 10-20 times longer than with VS6. The IDE has so many glitches, easiest tasks like Find&Replace doesn't work well. But the MFC and compiler have some improvements, so for me that means until SP1 I will continue to use VS6 for development and VS2005 only to compile it when it's ready for release and testing. But I disagree with you that C++ will loose the battle with C#. Because there isn't one. C# is growing fast, but not at the expense of C++. The main competition is between C# and VB. If Microsoft decides to drop VBA with Office 12 (now officialy Office 2007, they've learned there leason from VS2005 :-D ) VB will loose popularity fast. But C# can't replace C++ that easily. First, there is a large legacy codebase, it would take years and decades to rewrite it. Second, not everything can be written in C#. Ever tried to program a device driver or microcontroller with C#? I'm also still waiting for the first .NET app that i install on my PC. Office 12? A managed wrapper for the COM interface is everything you can call .NET :laugh: AutoCAD 2006? MFC. So where are all the .NET apps? But back to the topic, i guess most C++ developers will use C++/CLI for managed code. Also as long as the .NET framework is not installed on at least 90% of the Windows PCs i won't extend my MFC app with any managed crap. There is also a great blog where MS employees bash each other for VS2005 :laugh: http://minimsft.blogspot.com/2005/11/hey-shareholders-vs-2005-is-fantastic.html[^]

                                          S Offline
                                          S Offline
                                          Super Lloyd
                                          wrote on last edited by
                                          #25

                                          here you go, a .NET 2.0 app http://www.nova-mind.com[^] download the windows version, of course ;-)

                                          A 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