ZW3DC++调用C#的DLL

C#:

using System;
using System.Collections.Generic;
using System.Text;

namespace TestWinform
{
public class Class1
{

public void openForm()
{
Form1 form = new Form1();
form.ShowDialog();
}

}


}

 

 

C++:

#using "C:\\TestWinform.dll"

using namespace TestWinform;

 

void callCSharpDll() {

Class1^ c = gcnew Class1();
c->openForm();
}

 

posted @   张永全-PLM顾问  阅读(19)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2023-11-27 Q:如何设置Teamcenter胖客户端自动登陆?
2022-11-27 Solide Edge 2023 +TC14如何实现 BOM行 注释属性同步
点击右上角即可分享
微信分享提示