使用传统 C++ 中的自定义 .net 控件的最佳方法是什么? 应用程序?

发布于 2024-07-25 10:35:10 字数 88 浏览 3 评论 0原文

我维护一个旧应用程序(非托管 C++),并且需要一个新控件(基本表单)。 为了简单起见,我想用 C# 构建此控件,但从我的旧应用程序中使用它。 有什么建议么?

I maintain a legacy application (unmanaged C++) and I need a new control (Basic Form). I would like to build this control in C# for simplicity but use it from my legacy app. Any suggestions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

鹿童谣 2024-08-01 10:35:10

那么,您可能想在 C# 中创建一个 COM 控件,注册它并在您的 C++ 应用程序中使用它。 我看不到在 C++ 中使用 .NET 控件的任何其他方法 - 但是,我还没有尝试过。

Well, you might want to make a COM control in C#, register it and use it from within your C++ application. I can't see any other way of using a .NET control in C++ - however, I haven't tried that.

止于盛夏 2024-08-01 10:35:10

理论上你可以将 c++ 构建到 dll 中并使用它,但这里确实没有足够的信息。

Theoretically you could build the c++ into a dll and use it, but there is really not enough information here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文