很简单,
VC++中写好Dll入口
// Dll1.cpp
#include <windows.h>BOOL __stdcall DllMain(HINSTANCE hInst, DWORD dwReason, LPVOID lpReserved) {
return TRUE;
}__declspec(dllexport) bool __stdcall Run(void) {
  A a;
  return A.Func();
}
在C#中做好定义
using System;
using System.Runtime.InteropServices;class MainClass {
[DllImport("Dll1.dll")]
static extern bool Run();

public static void Main() {
Run();
}
};很简单吧