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. .NET (Core and Framework)
  4. how it works

how it works

Scheduled Pinned Locked Moved .NET (Core and Framework)
questionbeta-testingcode-review
5 Posts 3 Posters 19 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 going to ask a question the answer to which everybody knows for at least a decade but how does the net framework works? I know that it works like most libraries. You attach the library headers to your project and when the program is run on the target computer it will expect to find the binaries (dll etc.) of the library, the headers of which were previously added to the program. But how is the Net library different from a library granting access to containers, math functions or graphical capabilities. In other words what capabilities does the Net library is adding to your program? Thanks for feedback.

    C J L 3 Replies Last reply
    0
    • C Calin Negru

      I`m going to ask a question the answer to which everybody knows for at least a decade but how does the net framework works? I know that it works like most libraries. You attach the library headers to your project and when the program is run on the target computer it will expect to find the binaries (dll etc.) of the library, the headers of which were previously added to the program. But how is the Net library different from a library granting access to containers, math functions or graphical capabilities. In other words what capabilities does the Net library is adding to your program? Thanks for feedback.

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

      ok, I`ll start from the other end. What is the difference between a MFC App and a WinForms App? What you`re presented on screen by windows is achieved through binary code, a unique windows frame and windows controls displaying format. So it`s really only about the convenience in coding (which programming language you find easier), after compilation the programs will fit to the same rules regardless if their binary was created from C# (WinForms) code or C++ code (MFC). If I think about it a windows app bust me like a script even if it`s in a binary form. Several scripts can reside along side each other, this is what it must have been like since windows 95. The obvious flow in a program would be to call and update the hierarchy/chain of windows from within the main function but that`s not what is taking place in practice, the hierarchy is hidden away, all you can have is feedback when the user is interacting with a control.

      1 Reply Last reply
      0
      • C Calin Negru

        I`m going to ask a question the answer to which everybody knows for at least a decade but how does the net framework works? I know that it works like most libraries. You attach the library headers to your project and when the program is run on the target computer it will expect to find the binaries (dll etc.) of the library, the headers of which were previously added to the program. But how is the Net library different from a library granting access to containers, math functions or graphical capabilities. In other words what capabilities does the Net library is adding to your program? Thanks for feedback.

        J Offline
        J Offline
        jschell
        wrote on last edited by
        #3

        That is either too simplistic or too broad or something else. A library, any library, in any language, provides functionality defined by the library. A library that provides a method that does math might provide a method that does a maximum of two numbers. It would do that because that is a mathematical operations. A library that provides a method that returns the size of a file on the file system does that because the library does file system operations. And the size of a file is something that people like to know when the do stuff with the file system. If you want to know how the maximum function is written then you 1. Learn math 2. Learn the programming language. 3. Code the function If you want to know how to get the file size then 1. You learn exactly what that means (learn more about file systems.) 2. You will need to research core abilities in other libraries associated with the target file system. 3. Learn the programming language 4. Code the function. Now you might want to know more about 3 in the prior case. You need to learn about the Microsoft (not .Net) Windows API. And then learn how C# interacts with libraries that are not other C# libraries. If you want more information than that then it will require books (plural) to fully describe it.

        1 Reply Last reply
        0
        • C Calin Negru

          I`m going to ask a question the answer to which everybody knows for at least a decade but how does the net framework works? I know that it works like most libraries. You attach the library headers to your project and when the program is run on the target computer it will expect to find the binaries (dll etc.) of the library, the headers of which were previously added to the program. But how is the Net library different from a library granting access to containers, math functions or graphical capabilities. In other words what capabilities does the Net library is adding to your program? Thanks for feedback.

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

          In essence they are all the same, and the difference is in what the developer actually sees. In C/C++ you make direct calls to the functions in the Win32 libraries. In MFC most of those calls are wrapped in a class that is instantiated, and then called through the objects methods. In C#/VB.NET the Win32 calls are wrapped in the .NET framework classes. In Python they are wrapped in Python libraries. And all the libraries make this work by using the system calls provided by the operating system. The real issue is how these frameworks make the developer's job easier, by hiding the (often complicated) system interface.

          C 1 Reply Last reply
          0
          • L Lost User

            In essence they are all the same, and the difference is in what the developer actually sees. In C/C++ you make direct calls to the functions in the Win32 libraries. In MFC most of those calls are wrapped in a class that is instantiated, and then called through the objects methods. In C#/VB.NET the Win32 calls are wrapped in the .NET framework classes. In Python they are wrapped in Python libraries. And all the libraries make this work by using the system calls provided by the operating system. The real issue is how these frameworks make the developer's job easier, by hiding the (often complicated) system interface.

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

            Thanks Richard

            Quote:

            In MFC most of those calls are wrapped in a class that is instantiated

            Someone like me find this statement to be revealing

            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