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 @ 2024-11-27 15:25  张永全-PLM顾问  阅读(19)  评论(0编辑  收藏  举报