In the beginning I also think that is The dll program dependent on the external environment results in an error, but when I simplify the procedure to a minimum, the problem still exists
Simplified code is very simple:
c + + dll part:
#pragma once
using namespace System;
namespace CppDll {
public ref class Class1
{
};
}
win Form part:
public Form1()
{
CppDll.Class1 cls = new CppDll.Class1();
InitializeComponent();
}