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. Invoke from MASM Assembly Language

Invoke from MASM Assembly Language

Scheduled Pinned Locked Moved .NET (Core and Framework)
questionannouncement
6 Posts 4 Posters 1 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.
  • D Offline
    D Offline
    Derek Tortonian
    wrote on last edited by
    #1

    This is probably the wrong place to ask this question,...please direct me to the proper forum if it is. The question is: Is it possible to invoke a NET Framework interface (an object and its member functions) from a MASM assembly language program ??? Obviously, this assumes that a version of the NET Framework library exists on the computer that the program runs on, and, that the exported function is prototyped correctly.

    P 1 Reply Last reply
    0
    • D Derek Tortonian

      This is probably the wrong place to ask this question,...please direct me to the proper forum if it is. The question is: Is it possible to invoke a NET Framework interface (an object and its member functions) from a MASM assembly language program ??? Obviously, this assumes that a version of the NET Framework library exists on the computer that the program runs on, and, that the exported function is prototyped correctly.

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      Yes you can. It won't be easy, but it is possible.

      I was brought up to respect my elders. I don't respect many people nowadays.
      CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

      D 1 Reply Last reply
      0
      • P Pete OHanlon

        Yes you can. It won't be easy, but it is possible.

        I was brought up to respect my elders. I don't respect many people nowadays.
        CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

        D Offline
        D Offline
        Derek Tortonian
        wrote on last edited by
        #3

        PETE, Thanks for the response. I assumed that it was possible, but, very inconvenient. I'll have to do some more research. Just out of curiosity,...how exactly do you know it is possible ???

        D M 2 Replies Last reply
        0
        • D Derek Tortonian

          PETE, Thanks for the response. I assumed that it was possible, but, very inconvenient. I'll have to do some more research. Just out of curiosity,...how exactly do you know it is possible ???

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          For example -> Windows C++ app hosts CLR[^] You just have to do the same thing in Assembly Language. If you can write a Windows app in Assembly, you can host the CLR in it too.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak

          D 1 Reply Last reply
          0
          • D Dave Kreskowiak

            For example -> Windows C++ app hosts CLR[^] You just have to do the same thing in Assembly Language. If you can write a Windows app in Assembly, you can host the CLR in it too.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak

            D Offline
            D Offline
            Derek Tortonian
            wrote on last edited by
            #5

            DAVE, Thanks,...I'll read through the source code. This is very encouraging.

            1 Reply Last reply
            0
            • D Derek Tortonian

              PETE, Thanks for the response. I assumed that it was possible, but, very inconvenient. I'll have to do some more research. Just out of curiosity,...how exactly do you know it is possible ???

              M Offline
              M Offline
              MicroVirus
              wrote on last edited by
              #6

              Also, every .NET application starts as a normal Win32 application and then calls into the .NET runtime library. The rest of the executable 'contents' is usually MIDL (an intermediate language for .NET), which is then interpreted by the .NET runtime.

              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