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. C / C++ / MFC
  4. Stupid Questions on C++ .NET

Stupid Questions on C++ .NET

Scheduled Pinned Locked Moved C / C++ / MFC
c++csharpdotnetquestionlearning
7 Posts 5 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.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    I am new to C++ .Net and I have been told to move away from MFC to .Net. I have read through a few introduction book on .Net & C++ .Net by Microsoft Press, but so far I have yet to see anything in .Net that's similar to Doc/View or SDI/MDI in MFC. I only see .Net Framework Forms which looks like MFC's Dialog. Is there a MFC equivalent in .Net? How would I go about converting MFC to .Net or create Doc/View/SDI/MDI in .Net? If there isn't one why do I keep hearing people saying to move away from MFC and learn .Net. I would also appreciate any book recommendation. Thanks

    C A S R 4 Replies Last reply
    0
    • A Anonymous

      I am new to C++ .Net and I have been told to move away from MFC to .Net. I have read through a few introduction book on .Net & C++ .Net by Microsoft Press, but so far I have yet to see anything in .Net that's similar to Doc/View or SDI/MDI in MFC. I only see .Net Framework Forms which looks like MFC's Dialog. Is there a MFC equivalent in .Net? How would I go about converting MFC to .Net or create Doc/View/SDI/MDI in .Net? If there isn't one why do I keep hearing people saying to move away from MFC and learn .Net. I would also appreciate any book recommendation. Thanks

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      Anonymous wrote: why do I keep hearing people saying to move away from MFC and learn .Net because some people are convinced that every new Microsoft technology is the answer to all programming problems. .Net has its place, but as the name implies, that place is on the net, where it is a big improvement over what came before. on the desktop, it's not yet as powerful as MFC - at least what i've seen. just my opinion, of course. i'm sure others will come by and give you The Truth about .Net, and viciously scold me for my heresy. Image Toolkits | Image Processing | Cleek

      1 Reply Last reply
      0
      • A Anonymous

        I am new to C++ .Net and I have been told to move away from MFC to .Net. I have read through a few introduction book on .Net & C++ .Net by Microsoft Press, but so far I have yet to see anything in .Net that's similar to Doc/View or SDI/MDI in MFC. I only see .Net Framework Forms which looks like MFC's Dialog. Is there a MFC equivalent in .Net? How would I go about converting MFC to .Net or create Doc/View/SDI/MDI in .Net? If there isn't one why do I keep hearing people saying to move away from MFC and learn .Net. I would also appreciate any book recommendation. Thanks

        A Offline
        A Offline
        Andrew Walker
        wrote on last edited by
        #3

        Anonymous wrote: Is there a MFC equivalent in .Net? Yes and No. MFC is still distributed with VC.NET2003 (depending on which edition you get), so MFC is an option, even if all it does is give you access to an improved compiler. As for the alternatives to MFC - Windows Forms is the .NET equivalent. To take a guess, you looked at the code and it looked to simple compared to what MFC provided. Doc/View SDI/MDI are now so simple to achieve that Microsoft don't worry about them in the fashion that they used to - no more wizards, no more chunks of code that are labelled 'DO NOT EDIT'. If you do need to emulate the MFC styles of interface it's not hard at all. If you need large GUI's are you sure that you need to be writing them in C++? Microsoft now recommend that C# is an acceptable alternative in many cases and it simplifies the coding even further. If you need to access legacy code previously written in C++ you can wrap it in managed extensions or COM objects.


        A 1 Reply Last reply
        0
        • A Anonymous

          I am new to C++ .Net and I have been told to move away from MFC to .Net. I have read through a few introduction book on .Net & C++ .Net by Microsoft Press, but so far I have yet to see anything in .Net that's similar to Doc/View or SDI/MDI in MFC. I only see .Net Framework Forms which looks like MFC's Dialog. Is there a MFC equivalent in .Net? How would I go about converting MFC to .Net or create Doc/View/SDI/MDI in .Net? If there isn't one why do I keep hearing people saying to move away from MFC and learn .Net. I would also appreciate any book recommendation. Thanks

          S Offline
          S Offline
          Serge Krynine
          wrote on last edited by
          #4

          >> If there isn't one why do I keep hearing people saying to move away from MFC and learn .Net. One of the reason to move away from MFC is that it is not backward compatible between versions. For example, there are lots of changes (documented and non-documented) between MFC 6 (Visual Studio 98) and MFC 7.0 and MFC 7.1 (.NET 2003). So, if you have a large-scaled project, heavily based on MFC 6 and you are planning for migration to .NET 2003 with MFC 7, be prepare for lots of compile-time and run-time surprises. Serge

          1 Reply Last reply
          0
          • A Anonymous

            I am new to C++ .Net and I have been told to move away from MFC to .Net. I have read through a few introduction book on .Net & C++ .Net by Microsoft Press, but so far I have yet to see anything in .Net that's similar to Doc/View or SDI/MDI in MFC. I only see .Net Framework Forms which looks like MFC's Dialog. Is there a MFC equivalent in .Net? How would I go about converting MFC to .Net or create Doc/View/SDI/MDI in .Net? If there isn't one why do I keep hearing people saying to move away from MFC and learn .Net. I would also appreciate any book recommendation. Thanks

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

            Anonymous wrote: anything in .Net that's similar to Doc/View or SDI/MDI in MFC. No, at least not yet. I don't know if this has made it to 2.0. Anonymous wrote: any book recommendation I'm using these 3:

            • Windows Forms Programming in C# (Chris Sells)[^]
            • Programming Windows with C# (Charles Petzold)[^]
            • Inside C# (2nd ed) (Andrew Whitechapel & Tom Archer)[^]

            /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

            A 1 Reply Last reply
            0
            • A Andrew Walker

              Anonymous wrote: Is there a MFC equivalent in .Net? Yes and No. MFC is still distributed with VC.NET2003 (depending on which edition you get), so MFC is an option, even if all it does is give you access to an improved compiler. As for the alternatives to MFC - Windows Forms is the .NET equivalent. To take a guess, you looked at the code and it looked to simple compared to what MFC provided. Doc/View SDI/MDI are now so simple to achieve that Microsoft don't worry about them in the fashion that they used to - no more wizards, no more chunks of code that are labelled 'DO NOT EDIT'. If you do need to emulate the MFC styles of interface it's not hard at all. If you need large GUI's are you sure that you need to be writing them in C++? Microsoft now recommend that C# is an acceptable alternative in many cases and it simplifies the coding even further. If you need to access legacy code previously written in C++ you can wrap it in managed extensions or COM objects.


              A Offline
              A Offline
              Anonymous
              wrote on last edited by
              #6

              I looked at the examples in the books, all I see are MFC Dialog type interface. I know if I spend time I can make something look like Doc/View but right now I don't have that luxury to find out how to create one from scratch. Do you know any example that I can look at? As for C#, I don't know if I have the time to learn another language right now. I am on a tight schedule to get my program working. X|

              1 Reply Last reply
              0
              • R Ravi Bhavnani

                Anonymous wrote: anything in .Net that's similar to Doc/View or SDI/MDI in MFC. No, at least not yet. I don't know if this has made it to 2.0. Anonymous wrote: any book recommendation I'm using these 3:

                • Windows Forms Programming in C# (Chris Sells)[^]
                • Programming Windows with C# (Charles Petzold)[^]
                • Inside C# (2nd ed) (Andrew Whitechapel & Tom Archer)[^]

                /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

                A Offline
                A Offline
                Anonymous
                wrote on last edited by
                #7

                :laugh:those are C# books ;P I will look into those books when I get a chance to learn C#

                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