Invoke from MASM Assembly Language
-
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.
-
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.
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 -
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 easierPETE, 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 ???
-
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 ???
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 -
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 KreskowiakDAVE, Thanks,...I'll read through the source code. This is very encouraging.
-
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 ???
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.