解决方案:


[DllImport("Dll.dll")]改为[DllImport("Dll.dll", CallingConvention=CallingConvention.Cdecl)]
DllImport的CallingConvention的属性,默认值是CallingCovention.Stdcall,  此处更改成Cdecl(c/c++默认调用方式)

 

 

 

 


---------------------
作者:徐凤竹
来源:CSDN
原文:https://blog.csdn.net/xfz0330/article/details/51477769

相关文章:

  • 2022-12-23
  • 2021-06-21
  • 2021-06-27
  • 2021-08-28
  • 2021-12-09
  • 2022-02-08
  • 2021-12-02
猜你喜欢
  • 2022-12-23
  • 2021-06-28
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
  • 2022-02-16
  • 2022-12-23
相关资源
相似解决方案