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#
  4. Net framework again

Net framework again

Scheduled Pinned Locked Moved C#
csharpc++
12 Posts 6 Posters 15 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.
  • C Offline
    C Offline
    Calin Negru
    wrote on last edited by
    #1

    I’m trying to get a better understanding of net framework. I used to think net is just a MFC replacement. GUI programming on Windows the easy way. Windows is basically GUI tied to device drivers. In my mind .NET doesn’t reach the driver level, it’s just shallow scripting

    OriginalGriffO S L 3 Replies Last reply
    0
    • C Calin Negru

      I’m trying to get a better understanding of net framework. I used to think net is just a MFC replacement. GUI programming on Windows the easy way. Windows is basically GUI tied to device drivers. In my mind .NET doesn’t reach the driver level, it’s just shallow scripting

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      Yes, in the same way that a F1 car is just a Ford Fiesta replacement. You can compare MFC to .NET, but .NET is a lot more than "just a windows framework" - MFC is just a structured C++ framework around the Win32 API. But it made Windows development so much easier than the entirely manual message handling that preceded it. And .NET makes development so much easier than MFC was*. It's also language agnostic in a way that MFC never could be, despite being a solid part of C# - to the point where C# can't actually do much if anything without .NET behind it to provide even basic string handling! The number of languages that you can use .NET is is pretty impressive - and any assembly written in one of them can be used in another as it it was written in the same language. I used C for Windows, Then C++, then MFC/C++, and finally moved to C# with .NET and despite it's vast scale it's pretty much consistent: it something works for one control, there's a good chance the same properties will exist in another for example. Would I go back to DLL Hell and MFC? Not a chance in Hades! * You may have noticed that I didn't mention "Windows" with .NET - it also exists for Linux, Android, and iOS via Xamarin. Try that with MFC ...

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      C 1 Reply Last reply
      0
      • C Calin Negru

        I’m trying to get a better understanding of net framework. I used to think net is just a MFC replacement. GUI programming on Windows the easy way. Windows is basically GUI tied to device drivers. In my mind .NET doesn’t reach the driver level, it’s just shallow scripting

        S Offline
        S Offline
        Sam Hobbs
        wrote on last edited by
        #3

        .Net is a combination of many things. The GUI designers are more like VB 6 and VB prior to 6. .Net does not have the equivalent of the Document/View architecture built into it as it is in MFC. .Net does not support mixing languages using a linker as does unmanaged code does. Use of multiple languages by a .Net application requires that each language be a separate executable (DLL or the single exe file). Much of .Net is based on Java. The .Net intermediate language might be an evolution of the technology Microsoft had in the original Basic interpreter in DOS. The designer and original developer of C++ explains that C++ does not support the kind of feature (such as the .Net intermediate language) that provides the portability that Java and .Net languages provide.

        Richard Andrew x64R 1 Reply Last reply
        0
        • C Calin Negru

          I’m trying to get a better understanding of net framework. I used to think net is just a MFC replacement. GUI programming on Windows the easy way. Windows is basically GUI tied to device drivers. In my mind .NET doesn’t reach the driver level, it’s just shallow scripting

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          There are some 124 name spaces in the framework / class library; maybe 20% are dedicated to GUI programming. UWP and WPF use DirectX; which is close enough to driver level.

          "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

          Richard DeemingR C 2 Replies Last reply
          0
          • L Lost User

            There are some 124 name spaces in the framework / class library; maybe 20% are dedicated to GUI programming. UWP and WPF use DirectX; which is close enough to driver level.

            "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

            Richard DeemingR Offline
            Richard DeemingR Offline
            Richard Deeming
            wrote on last edited by
            #5

            Gerry Schmitz wrote:

            There are some 124 name spaces in the framework / class library

            Try counting again - there are 2305 namespaces listed here[^]. :laugh:


            "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

            "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

            L 1 Reply Last reply
            0
            • OriginalGriffO OriginalGriff

              Yes, in the same way that a F1 car is just a Ford Fiesta replacement. You can compare MFC to .NET, but .NET is a lot more than "just a windows framework" - MFC is just a structured C++ framework around the Win32 API. But it made Windows development so much easier than the entirely manual message handling that preceded it. And .NET makes development so much easier than MFC was*. It's also language agnostic in a way that MFC never could be, despite being a solid part of C# - to the point where C# can't actually do much if anything without .NET behind it to provide even basic string handling! The number of languages that you can use .NET is is pretty impressive - and any assembly written in one of them can be used in another as it it was written in the same language. I used C for Windows, Then C++, then MFC/C++, and finally moved to C# with .NET and despite it's vast scale it's pretty much consistent: it something works for one control, there's a good chance the same properties will exist in another for example. Would I go back to DLL Hell and MFC? Not a chance in Hades! * You may have noticed that I didn't mention "Windows" with .NET - it also exists for Linux, Android, and iOS via Xamarin. Try that with MFC ...

              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

              C Offline
              C Offline
              Calin Negru
              wrote on last edited by
              #6

              I feel like I’m traveling back in time. After seeing what Windows forms is all about it’s time to see what MFC can do. But this thread is about .net. I should probably look into what other things .net comes with, besides forms

              OriginalGriffO 1 Reply Last reply
              0
              • L Lost User

                There are some 124 name spaces in the framework / class library; maybe 20% are dedicated to GUI programming. UWP and WPF use DirectX; which is close enough to driver level.

                "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

                C Offline
                C Offline
                Calin Negru
                wrote on last edited by
                #7

                Sam, Gerry thanks for feedback

                1 Reply Last reply
                0
                • C Calin Negru

                  I feel like I’m traveling back in time. After seeing what Windows forms is all about it’s time to see what MFC can do. But this thread is about .net. I should probably look into what other things .net comes with, besides forms

                  OriginalGriffO Offline
                  OriginalGriffO Offline
                  OriginalGriff
                  wrote on last edited by
                  #8

                  Shed loads. I'd strongly suggest a book on the subject: they should present the whole of .NET so you don't miss something you could have used later if you had known about it! Wrox do good ones, as do Addison Wesley and MS Press.

                  "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

                  "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                  "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                  C 1 Reply Last reply
                  0
                  • OriginalGriffO OriginalGriff

                    Shed loads. I'd strongly suggest a book on the subject: they should present the whole of .NET so you don't miss something you could have used later if you had known about it! Wrox do good ones, as do Addison Wesley and MS Press.

                    "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

                    C Offline
                    C Offline
                    Calin Negru
                    wrote on last edited by
                    #9

                    Thanks for advice

                    OriginalGriffO 1 Reply Last reply
                    0
                    • C Calin Negru

                      Thanks for advice

                      OriginalGriffO Offline
                      OriginalGriffO Offline
                      OriginalGriff
                      wrote on last edited by
                      #10

                      You're welcome!

                      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

                      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                      1 Reply Last reply
                      0
                      • Richard DeemingR Richard Deeming

                        Gerry Schmitz wrote:

                        There are some 124 name spaces in the framework / class library

                        Try counting again - there are 2305 namespaces listed here[^]. :laugh:


                        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #11

                        I just Googled for a number; it returned one big enough to use. I suspect there are "major" ones and "minor" ones. I'll even take your word for it without bothering to check.

                        "Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I

                        1 Reply Last reply
                        0
                        • S Sam Hobbs

                          .Net is a combination of many things. The GUI designers are more like VB 6 and VB prior to 6. .Net does not have the equivalent of the Document/View architecture built into it as it is in MFC. .Net does not support mixing languages using a linker as does unmanaged code does. Use of multiple languages by a .Net application requires that each language be a separate executable (DLL or the single exe file). Much of .Net is based on Java. The .Net intermediate language might be an evolution of the technology Microsoft had in the original Basic interpreter in DOS. The designer and original developer of C++ explains that C++ does not support the kind of feature (such as the .Net intermediate language) that provides the portability that Java and .Net languages provide.

                          Richard Andrew x64R Offline
                          Richard Andrew x64R Offline
                          Richard Andrew x64
                          wrote on last edited by
                          #12

                          Sam Hobbs wrote:

                          Much of .Net is based on Java.

                          How much are you saying is based on Java? And what do you mean by "based on?"

                          The difficult we do right away... ...the impossible takes slightly longer.

                          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