using System.Runtime.InteropServices;

[DllImport("mydll.DLL", SetLastError = true)]//引用组件

private static extern bool MyModel(string myparents);//声明要调用的方法,extern 必须加上

private static test()

{

MYModel("");//调用 

}

相关文章:

  • 2022-02-25
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2021-10-18
  • 2021-07-15
  • 2022-12-23
  • 2021-07-02
猜你喜欢
  • 2022-02-20
  • 2021-08-09
  • 2021-06-27
  • 2022-12-23
  • 2021-08-25
相关资源
相似解决方案