Click here to Skip to main content
16,013,918 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: DiscUtils - a replacement? Im desperate to solve this problem. Pin
Gerry Schmitz19-Jul-16 6:17
mveGerry Schmitz19-Jul-16 6:17 
GeneralRe: DiscUtils - a replacement? Im desperate to solve this problem. Pin
mInternauta20-Jul-16 4:25
mInternauta20-Jul-16 4:25 
GeneralRe: DiscUtils - a replacement? Im desperate to solve this problem. Pin
Daniel Pfeffer20-Jul-16 20:58
professionalDaniel Pfeffer20-Jul-16 20:58 
GeneralRe: DiscUtils - a replacement? Im desperate to solve this problem. Pin
mInternauta21-Jul-16 1:54
mInternauta21-Jul-16 1:54 
QuestionUnmanaged Hosting of .NET Framework Version 4 Pin
Derek Tortonian5-Jul-16 10:29
Derek Tortonian5-Jul-16 10:29 
AnswerRe: Unmanaged Hosting of .NET Framework Version 4 Pin
Super Lloyd5-Jul-16 16:08
Super Lloyd5-Jul-16 16:08 
AnswerRe: Unmanaged Hosting of .NET Framework Version 4 Pin
Super Lloyd5-Jul-16 19:55
Super Lloyd5-Jul-16 19:55 
GeneralRe: Unmanaged Hosting of .NET Framework Version 4 Pin
Derek Tortonian6-Jul-16 10:27
Derek Tortonian6-Jul-16 10:27 
Hi, Super Lloyd,
Yeah,...you understood essentially what I was getting at. The question is basically a COM question (since the .NET Framework classes, types, methods and attributes are 'exposed' to unmanaged applications through the associated COM interfaces).
The idea behind the application is to see how difficult it is to use the .NET Framework assembly types and methods from a MASM assembly language application. And, actually, I didn't come up with the original concept,...I'm just writing a test app to demonstrate that the code does in fact work correctly. I assume that it's not impossible, because you could do the same thing in C++, using Visual Studio.
The big problem with us assembly programmers is that we don't have all the header files that come with Visual Studio to rely on when we write our source, so we have to prototype everything from scratch (usually using the SDK header files, or files we can download from the Internet), and converting the syntax to that of an assembly language include file (the equivalent of a C or C++ header file), which is pretty simple.
And, yes,...you were right about the type library (mscorlib.tlb). You can launch the OLE/COM ObjectViewer (which I think is included with Visual Studio), and, scroll down to the type libraries. A COM type library is supposed to be registered for COM activation (similar to the registry entries for a COM Server Dll) and has entries in the registry, which indicate its location on your computer. So, I can open up the type library and view its various interfaces in IDL format. I assume that the type library was created with Tlbexp.exe (Type Library Exporter), and so the order of implementation addresses for the various functions in the selected interface virtual function table should be the same as in the .NET Framework assembly. This has been working pretty well so far. I can call the method of a COM interface that corresponds to its .NET class, and retrieve the data requested without any difficulty. But, I'm uncertain, at this point how to reference the various .NET Framework types that I will need to supply as calling parameters to corresponding COM Interface methods, so that I can actually call [COM Visible] .NET methods in my unmanaged application.
If you use an Intermediate Language decompiler, like ILSpy, you can open up mscorlib, and compare the actual .NET Framework class (for instance: Assembly Class), with its corresponding COM Interface for unmanaged applications: _Assembly, and get an idea for how they correspond.

modified 6-Jul-16 17:08pm.

GeneralRe: Unmanaged Hosting of .NET Framework Version 4 Pin
Super Lloyd6-Jul-16 13:25
Super Lloyd6-Jul-16 13:25 
GeneralRe: Unmanaged Hosting of .NET Framework Version 4 Pin
Derek Tortonian7-Jul-16 8:50
Derek Tortonian7-Jul-16 8:50 
GeneralRe: Unmanaged Hosting of .NET Framework Version 4 Pin
Super Lloyd7-Jul-16 14:35
Super Lloyd7-Jul-16 14:35 
GeneralRe: Unmanaged Hosting of .NET Framework Version 4 Pin
Derek Tortonian8-Jul-16 10:05
Derek Tortonian8-Jul-16 10:05 
GeneralPROBLEM SOLVED Pin
Derek Tortonian13-Jul-16 10:08
Derek Tortonian13-Jul-16 10:08 
GeneralRe: PROBLEM SOLVED Pin
Super Lloyd13-Jul-16 17:50
Super Lloyd13-Jul-16 17:50 
GeneralRe: PROBLEM SOLVED Pin
Derek Tortonian15-Jul-16 13:10
Derek Tortonian15-Jul-16 13:10 
GeneralRe: PROBLEM SOLVED Pin
Super Lloyd15-Jul-16 17:02
Super Lloyd15-Jul-16 17:02 
QuestionDapper Query Async calling a stored procedures with parameters Pin
DotNetFellow29-Jun-16 3:43
DotNetFellow29-Jun-16 3:43 
AnswerRe: Dapper Query Async calling a stored procedures with parameters Pin
Richard Deeming29-Jun-16 3:55
mveRichard Deeming29-Jun-16 3:55 
AnswerRe: Dapper Query Async calling a stored procedures with parameters Pin
Pratik_Scott30-Jun-16 6:47
Pratik_Scott30-Jun-16 6:47 
QuestionCode special to MVC Pin
larsp77728-Jun-16 2:13
larsp77728-Jun-16 2:13 
AnswerRe: Code special to MVC Pin
Dave Kreskowiak28-Jun-16 2:37
mveDave Kreskowiak28-Jun-16 2:37 
GeneralRe: Code special to MVC Pin
larsp77728-Jun-16 2:46
larsp77728-Jun-16 2:46 
GeneralRe: Code special to MVC Pin
Richard Deeming28-Jun-16 3:10
mveRichard Deeming28-Jun-16 3:10 
GeneralRe: Code special to MVC Pin
Dave Kreskowiak28-Jun-16 3:40
mveDave Kreskowiak28-Jun-16 3:40 
GeneralRe: Code special to MVC Pin
larsp77728-Jun-16 3:44
larsp77728-Jun-16 3:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.