动态生成的类如下:
using System;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
namespace Testtoolproject
{
public class DynamicClass
{
[DllImport("Win32MutlOld(极致汇仪1).dll", EntryPoint = "Mutil", CallingConvention = CallingConvention.Cdecl)]
public static extern double Mutil(double x, double y);
}
}
错误提示如下: