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. Programming Windows with C#

Programming Windows with C#

Scheduled Pinned Locked Moved The Lounge
c++csharpwinformsoop
11 Posts 10 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.
  • F Frank Liao

    Woohoo, I finally got my copy of Petzold's new book from Amazon today. Heh, maybe I can finally figure out what Windows Forms are all about. Though, I noticed in the introduction these quotes: "I never liked MFC. Ever since it was introduced, I thought it was poorly designed and barely object oriented. Consequently, I've never written aobut MFC. But that's only a personal view" :( ... "From my view, Windows Forms is much better designed than MFC and much closer to what I envision as an ideal object-oriented interface to Windows." So, that's the reason why he's so invisible about MFC. :) After flipping through the book, I think most of the stuff is new, though some of the examples used are familiar from Programming Windows. I also noticed that it says that you can use C++ with Windows Forms, though I'm not sure if that's true. It's probably true, but Visual C++ probably lacks the nifty Windows Forms editor that VB.Net and C#.Net has. Anyway, it will probably be a while before I can come to any conlusions about this book since school (UCLA) starts Monday for me . Frank

    R Offline
    R Offline
    Russell Morris
    wrote on last edited by
    #2

    Frank Liao wrote: It's probably true, but Visual C++ probably lacks the nifty Windows Forms editor that VB.Net and C#.Net has. You're right on both issues. You can use Windows Forms from C++, but you don't get the spiffy form editors as of yet (if ever - it's not in RC1, I don't think...). A little while ago I was corrected on this issue by another CP'ian - I didn't think that it was possible to do from C++. But, considering that today at work I derived a subclass of System.Windows.Forms.Control in C++, I was obviously incorrect before ;P -- Russell Morris AFLAC Software Research Center "WOW! Chocolate - half price!" - Homer Simpson, while in the land of chocolate.

    C C J 3 Replies Last reply
    0
    • F Frank Liao

      Woohoo, I finally got my copy of Petzold's new book from Amazon today. Heh, maybe I can finally figure out what Windows Forms are all about. Though, I noticed in the introduction these quotes: "I never liked MFC. Ever since it was introduced, I thought it was poorly designed and barely object oriented. Consequently, I've never written aobut MFC. But that's only a personal view" :( ... "From my view, Windows Forms is much better designed than MFC and much closer to what I envision as an ideal object-oriented interface to Windows." So, that's the reason why he's so invisible about MFC. :) After flipping through the book, I think most of the stuff is new, though some of the examples used are familiar from Programming Windows. I also noticed that it says that you can use C++ with Windows Forms, though I'm not sure if that's true. It's probably true, but Visual C++ probably lacks the nifty Windows Forms editor that VB.Net and C#.Net has. Anyway, it will probably be a while before I can come to any conlusions about this book since school (UCLA) starts Monday for me . Frank

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

      Thanks for posting something about it! I was waiting for this book to come out since I heard he was writing it; but it never dawned on me to see if it might have made it yet :p *sigh* Now I just need some money so i can buy the damned thing. James Sonork ID: 100.11138 - Hasaki

      Brian C HartB 1 Reply Last reply
      0
      • R Russell Morris

        Frank Liao wrote: It's probably true, but Visual C++ probably lacks the nifty Windows Forms editor that VB.Net and C#.Net has. You're right on both issues. You can use Windows Forms from C++, but you don't get the spiffy form editors as of yet (if ever - it's not in RC1, I don't think...). A little while ago I was corrected on this issue by another CP'ian - I didn't think that it was possible to do from C++. But, considering that today at work I derived a subclass of System.Windows.Forms.Control in C++, I was obviously incorrect before ;P -- Russell Morris AFLAC Software Research Center "WOW! Chocolate - half price!" - Homer Simpson, while in the land of chocolate.

        C Offline
        C Offline
        Chris Maunder
        wrote on last edited by
        #4

        C++ needs CodeDOM implemented so that it can support RAD and ASP.NET. Stanley Lippman has assured us that this is high on the agenda for the updated version due (most likely) before year's end. cheers, Chris Maunder

        1 Reply Last reply
        0
        • R Russell Morris

          Frank Liao wrote: It's probably true, but Visual C++ probably lacks the nifty Windows Forms editor that VB.Net and C#.Net has. You're right on both issues. You can use Windows Forms from C++, but you don't get the spiffy form editors as of yet (if ever - it's not in RC1, I don't think...). A little while ago I was corrected on this issue by another CP'ian - I didn't think that it was possible to do from C++. But, considering that today at work I derived a subclass of System.Windows.Forms.Control in C++, I was obviously incorrect before ;P -- Russell Morris AFLAC Software Research Center "WOW! Chocolate - half price!" - Homer Simpson, while in the land of chocolate.

          C Offline
          C Offline
          ColinDavies
          wrote on last edited by
          #5

          Russell Morris wrote: A little while ago I was corrected on this issue by another CP'ian Don't let that happen too often ! :-) My 2 cents, 1.cent) The current lack of new tools for VC++ will be resolved by the market responding and 3rd party authorities developing both novel utilities and imitations of other MS tools. Maybe a 3rd part will have a WForms editor implimented before MS and will become the industry standard. 2.cent) MS hasn't allowed this lack of new tools happen on their own volition, but it has occurred because there resourses have been taken up elsewhere, eg squadrons of MS coders migrating down to CLR and C# projects for there development. Shiney Coin) VC++ and C++ will be left with a better experienced core of coders once all the weirdos have gone on there merry way like devout leemings on migration. Lets see a C# dude develop their own compiler in the CLR ! Lets see a C# dude develop thier own pseudo kerell. The real power to create still resides in Assembler, C , C++ and Delphi. One quetion what was the CLR written in ? :-) Regardz Colin J Davies

          Sonork ID 100.9197:Colin

          I live in Bob's HungOut now

          A good example of "Fully Managed" coding

          G 1 Reply Last reply
          0
          • R Russell Morris

            Frank Liao wrote: It's probably true, but Visual C++ probably lacks the nifty Windows Forms editor that VB.Net and C#.Net has. You're right on both issues. You can use Windows Forms from C++, but you don't get the spiffy form editors as of yet (if ever - it's not in RC1, I don't think...). A little while ago I was corrected on this issue by another CP'ian - I didn't think that it was possible to do from C++. But, considering that today at work I derived a subclass of System.Windows.Forms.Control in C++, I was obviously incorrect before ;P -- Russell Morris AFLAC Software Research Center "WOW! Chocolate - half price!" - Homer Simpson, while in the land of chocolate.

            J Offline
            J Offline
            Jason Hooper
            wrote on last edited by
            #6

            Russell Morris wrote: A little while ago I was corrected on this issue by another CP'ian - I didn't think Is it "SEE pee in" or "see PEE ee in" ? :confused: -Jason nirgle.bitdevil.com

            1 Reply Last reply
            0
            • C ColinDavies

              Russell Morris wrote: A little while ago I was corrected on this issue by another CP'ian Don't let that happen too often ! :-) My 2 cents, 1.cent) The current lack of new tools for VC++ will be resolved by the market responding and 3rd party authorities developing both novel utilities and imitations of other MS tools. Maybe a 3rd part will have a WForms editor implimented before MS and will become the industry standard. 2.cent) MS hasn't allowed this lack of new tools happen on their own volition, but it has occurred because there resourses have been taken up elsewhere, eg squadrons of MS coders migrating down to CLR and C# projects for there development. Shiney Coin) VC++ and C++ will be left with a better experienced core of coders once all the weirdos have gone on there merry way like devout leemings on migration. Lets see a C# dude develop their own compiler in the CLR ! Lets see a C# dude develop thier own pseudo kerell. The real power to create still resides in Assembler, C , C++ and Delphi. One quetion what was the CLR written in ? :-) Regardz Colin J Davies

              Sonork ID 100.9197:Colin

              I live in Bob's HungOut now

              A good example of "Fully Managed" coding

              G Offline
              G Offline
              G Suresh
              wrote on last edited by
              #7

              There is already a C# compiler that is written in C#. The Mono C# Compiler I completely disagree that the real power to create lies in Assembler, C, C++ and Deplhi. C# is really nice and can work for most real world applications. Name one thing that you can do with C++/MFC that cannot be done with C#/Windows Forms. Regards, Suresh :)

              A G C 3 Replies Last reply
              0
              • G G Suresh

                There is already a C# compiler that is written in C#. The Mono C# Compiler I completely disagree that the real power to create lies in Assembler, C, C++ and Deplhi. C# is really nice and can work for most real world applications. Name one thing that you can do with C++/MFC that cannot be done with C#/Windows Forms. Regards, Suresh :)

                A Offline
                A Offline
                Anders Molin
                wrote on last edited by
                #8

                G. Suresh wrote: Name one thing that you can do with C++/MFC that cannot be done with C#/Windows Forms. Make applications for Windows 95 ;P Make applications that can run without the .NET runtime... Woops, that was 2 things. - Anders Money talks, but all mine ever says is "Goodbye!"

                1 Reply Last reply
                0
                • G G Suresh

                  There is already a C# compiler that is written in C#. The Mono C# Compiler I completely disagree that the real power to create lies in Assembler, C, C++ and Deplhi. C# is really nice and can work for most real world applications. Name one thing that you can do with C++/MFC that cannot be done with C#/Windows Forms. Regards, Suresh :)

                  G Offline
                  G Offline
                  George
                  wrote on last edited by
                  #9

                  G. Suresh wrote: Name one thing that you can do with C++/MFC that cannot be done with C#/Windows Forms. Well, for one you can get a released compiler for C++ while C# is in beta and nothing but testing can be done with it.

                  1 Reply Last reply
                  0
                  • J James T Johnson

                    Thanks for posting something about it! I was waiting for this book to come out since I heard he was writing it; but it never dawned on me to see if it might have made it yet :p *sigh* Now I just need some money so i can buy the damned thing. James Sonork ID: 100.11138 - Hasaki

                    Brian C HartB Offline
                    Brian C HartB Offline
                    Brian C Hart
                    wrote on last edited by
                    #10

                    James T. Johnson wrote: *sigh* Now I just need some money so i can buy the damned thing. Money, money, money... seems to be in such short supply these days... Sincerely Yours, Brian Hart "And that's the news from Lake Wobegon, where all the women are strong, the men are good-looking, and the children are above-average." - Garrison Keillor

                    Regards,

                    Dr. Brian Hart
                    drbrianhart343@gmail.com email
                    LinkedIn: https://www.linkedin.com/in/dr-brian-hart-astrophysicist-veteran/

                    1 Reply Last reply
                    0
                    • G G Suresh

                      There is already a C# compiler that is written in C#. The Mono C# Compiler I completely disagree that the real power to create lies in Assembler, C, C++ and Deplhi. C# is really nice and can work for most real world applications. Name one thing that you can do with C++/MFC that cannot be done with C#/Windows Forms. Regards, Suresh :)

                      C Offline
                      C Offline
                      ColinDavies
                      wrote on last edited by
                      #11

                      G. Suresh wrote: There is already a C# compiler that is written in C#. Are you sure that it is a real compiler ? I have read through most of the site and it is sketchy to say the best if it is a real compiler , I'm under the impression it compiles stuff for the CLI rather than for the OS, Please correct me if I'm wrong, Regardz Colin J Davies

                      Sonork ID 100.9197:Colin

                      I live in Bob's HungOut now

                      A good example of "Fully Managed" coding

                      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