Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我维护一个遗留应用程序(非托管 C++),我需要一个新控件(基本表单)。为了简单起见,我想在 C# 中构建此控件,但在我的旧版应用程序中使用它。有什么建议么?
好吧,您可能想在 C# 中创建一个 COM 控件,注册它并在您的 C++ 应用程序中使用它。我看不到在 C++ 中使用 .NET 控件的任何其他方式 - 但是,我没有尝试过。
从理论上讲,您可以将 c++ 构建成 dll 并使用它,但这里确实没有足够的信息。