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();
}