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. General Programming
  3. Managed C++/CLI
  4. Some hope for MC++ coders

Some hope for MC++ coders

Scheduled Pinned Locked Moved Managed C++/CLI
c++questionwinformscomcollaboration
20 Posts 7 Posters 50 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.
  • M Michael P Butler

    Nish - Native CPian wrote: I hope they bring it out as a Service Pack [which is free] instead of as a new version [which won't be free] Surely you'll just be using a pirated version anyway :-D :-D :-D Michael :-) "Eureka" is Greek for "This bath is too hot"

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

    Michael P Butler wrote: Surely you'll just be using a pirated version anyway Pirated versions don’t come free MPB. You gotta pay for them. And if you compare salaries, I pay as much of my monthly salary for a pirated CD, that a regular software guy in most other countries would pay for a legal copy of VS .NET. Anyway I strongly intend to make some money and get myself a LEGAL MSDN subscription. Nish


    Author of the romantic comedy Summer Love and Some more Cricket [New Win] Buy it, read it and admire me :-)

    1 Reply Last reply
    0
    • M Michael P Butler

      Nish - Native CPian wrote: I hope they bring it out as a Service Pack [which is free] instead of as a new version [which won't be free] Surely you'll just be using a pirated version anyway :-D :-D :-D Michael :-) "Eureka" is Greek for "This bath is too hot"

      J Offline
      J Offline
      James T Johnson
      wrote on last edited by
      #12

      Nish may use some pirated software but his VS.NET CDs ARE originals from Microsoft. Its just that they were originally given to me and we'll just say that Nish pulled them out of the trash can next to my desk right after I tossed them :P Come to think of it, I still have another set sitting next to me :-D Michael P Butler wrote: "Eureka" is Greek for "This bath is too hot" Nothing gets you thinking like burning your jewels in the morning. ;) James

      N 1 Reply Last reply
      0
      • J James T Johnson

        If the rest of your app is in MC++ you don't have to ship a separate assembly for the UI ;P Otherwise there isn't an advantage that I can think of. James

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

        James T. Johnson wrote: Otherwise there isn't an advantage that I can think of. Some languages are more comfortable. When you do MC++, you don't feel as alienated from real unmanaged life as when you do C# Nish


        Author of the romantic comedy Summer Love and Some more Cricket [New Win] Buy it, read it and admire me :-)

        J 1 Reply Last reply
        0
        • J James T Johnson

          Nish may use some pirated software but his VS.NET CDs ARE originals from Microsoft. Its just that they were originally given to me and we'll just say that Nish pulled them out of the trash can next to my desk right after I tossed them :P Come to think of it, I still have another set sitting next to me :-D Michael P Butler wrote: "Eureka" is Greek for "This bath is too hot" Nothing gets you thinking like burning your jewels in the morning. ;) James

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

          James T. Johnson wrote: Nish may use some pirated software but his VS.NET CDs ARE originals from Microsoft. :jig: :jig: :jig: James T. Johnson wrote: Nothing gets you thinking like burning your jewels in the morning Now we know what a jewelhole is! Nish


          Author of the romantic comedy Summer Love and Some more Cricket [New Win] Buy it, read it and admire me :-)

          1 Reply Last reply
          0
          • N Nish Nishant

            James T. Johnson wrote: Otherwise there isn't an advantage that I can think of. Some languages are more comfortable. When you do MC++, you don't feel as alienated from real unmanaged life as when you do C# Nish


            Author of the romantic comedy Summer Love and Some more Cricket [New Win] Buy it, read it and admire me :-)

            J Offline
            J Offline
            James T Johnson
            wrote on last edited by
            #15

            Nish - Native CPian wrote: When you do MC++, you don't feel as alienated from real unmanaged life as when you do C# I don't feel alienated from it because I have P/Invoke and if I really need to, I know I can just create an assembly in MC++ and do my work there. James

            N 1 Reply Last reply
            0
            • J James T Johnson

              Nish - Native CPian wrote: When you do MC++, you don't feel as alienated from real unmanaged life as when you do C# I don't feel alienated from it because I have P/Invoke and if I really need to, I know I can just create an assembly in MC++ and do my work there. James

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

              James T. Johnson wrote: I have P/Invoke James T. Johnson wrote: create an assembly in MC++ Why go to all that bother just to do C#? What's so appealing about it? Nish


              Author of the romantic comedy Summer Love and Some more Cricket [New Win] Buy it, read it and admire me :-)

              J 1 Reply Last reply
              0
              • N Nish Nishant

                James T. Johnson wrote: I have P/Invoke James T. Johnson wrote: create an assembly in MC++ Why go to all that bother just to do C#? What's so appealing about it? Nish


                Author of the romantic comedy Summer Love and Some more Cricket [New Win] Buy it, read it and admire me :-)

                J Offline
                J Offline
                James T Johnson
                wrote on last edited by
                #17

                For .NET code its a lot cleaner to me. You need to be aware of a few performance tweaks (such as avoiding unnecessary boxing) but over all the syntax is much better. Which of these do you prefer? MC++

                ptr = *dynamic_cast<__box System::IntPtr*>(arlist->Item[index]);

                or this C#

                ptr = (IntPtr) arlist[index]

                However, the code I sent you the other day would convince me to switch to MC++ in a heart beat :cool: James

                N 1 Reply Last reply
                0
                • J James T Johnson

                  For .NET code its a lot cleaner to me. You need to be aware of a few performance tweaks (such as avoiding unnecessary boxing) but over all the syntax is much better. Which of these do you prefer? MC++

                  ptr = *dynamic_cast<__box System::IntPtr*>(arlist->Item[index]);

                  or this C#

                  ptr = (IntPtr) arlist[index]

                  However, the code I sent you the other day would convince me to switch to MC++ in a heart beat :cool: James

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

                  James T. Johnson wrote: However, the code I sent you the other day would convince me to switch to MC++ in a heart beat Yeah. That was cool :-)


                  Author of the romantic comedy Summer Love and Some more Cricket [New Win] Buy it, read it and admire me :-)

                  1 Reply Last reply
                  0
                  • N Nish Nishant

                    Michael P Butler wrote: What advantages do we get for doing UI code in MC++ compared to doing it in C# ? None except personal preference. Basically anything you do in C# can be one-to-one mapped in VB .NET But still lot of people don't do VB .NET. Similarly some only do VB .NET. And I prefer MC++. And I can tell you that it's a cool feeling when you can use an MFC CString alongside a .NET String in the same source file. You cannot do that with C# or VB .NET, can you? Nish


                    Author of the romantic comedy Summer Love and Some more Cricket [New Win] Buy it, read it and admire me :-)

                    R Offline
                    R Offline
                    Rocky Moore
                    wrote on last edited by
                    #19

                    Nish - Native CPian wrote: And I can tell you that it's a cool feeling when you can use an MFC CString alongside a .NET String in the same source file. You cannot do that with C# or VB .NET, can you? Actually, isn't that an ATL string [in] MFC [in] .NET ;) Rocky Moore

                    N 1 Reply Last reply
                    0
                    • R Rocky Moore

                      Nish - Native CPian wrote: And I can tell you that it's a cool feeling when you can use an MFC CString alongside a .NET String in the same source file. You cannot do that with C# or VB .NET, can you? Actually, isn't that an ATL string [in] MFC [in] .NET ;) Rocky Moore

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

                      Rocky Moore wrote: Actually, isn't that an ATL string [in] MFC [in] .NET Yes it is :-D


                      Author of the romantic comedy Summer Love and Some more Cricket [New Win]

                      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