Is there a reason why .NET is not supported in native Visual Studio C ++?

This may seem like a silly question, but I recently realized that the .NET implementation is running in C ++ / C, so I was wondering if there are any technical reasons why we cannot use the .NET libraries in native C ++ .

+4
source share
2 answers

The .NET CLR is implemented in native code, but using the .NET library involves creating a CLR in which code is executed and interacting with this library through calls to the CLR.

You can use .NET libraries from your own C ++, but it includes sorting all calls through the CLR, as well as using your own libraries from .NET code.

+8
source

.net is not really native code, it is compiled into bytecode (aka managed code), comparable to how Java works. However, there are ways to link your own and managed code together using a separate DLL and with a lot of data marshaling, but I don’t think they can be combined in one binary file.

-1
source

All Articles