C++/CLI

C++/CLI

  A C++/CLI application or component uses extensions to C++ syntax (as allowed by the C++ Specification) to enable interaction between .NET and native C++code.

    C++/CLI 是扩展了语法的 C++,使得 .NET和 C++代码可以交互。

  A C++/CLI application can have parts that run natively and parts that run on the .NET Framework with access to the .NET Base Class Library.

    C++/CLI 应用可以部分跑在本地,部分跑在 .NET框架上。

  C++/CLI is the preferred option when you have native C++ code that needs to work with code written in C# or Visual Basic. It is primarily intended for use in .NET DLLs rather than in user interface code.

    在有C++代码需要与 C# 混用的情况下,C++/CLI是优先选择。

参考:

1、https://docs.microsoft.com/en-us/cpp/windows/desktop-applications-visual-cpp?view=vs-2017

2、https://docs.microsoft.com/en-us/cpp/dotnet/dotnet-programming-with-cpp-cli-visual-cpp?view=vs-2017

原文地址:https://www.cnblogs.com/tekkaman/p/10284113.html