且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从ATL项目中调用Windows窗体

更新时间:2023-12-06 15:14:16

使用C ++/CLI.例如,使用gcnew实例化.NET类,然后在C ++代码中使用该对象.

几天前在CP中提出了类似的问题.检查那里的答案:
在c ++项目中调用c#dll或类 [
Use C++/CLI. E.g., use gcnew to instantiate a .NET class and then use the object in your C++ code.

A similar question was asked in CP a few days back. Check the answers there:
call c# dll or class within c++ project[^]