Check the PInvoke signatures calling convention and parameters unmanaged target signature matches

solution:


[DllImport ( "Dll.dll")] to [DllImport ( "dll.dll", CallingConvention = CallingConvention.Cdecl)]
CallingConvention DllImport attributes, the default value is CallingCovention.Stdcall, here to change into Cdecl (c / c ++ default call mode)

 

 

 

 


---------------------
Author: Xu Feng Zhu
Source: CSDN
Original: https: //blog.csdn.net/xfz0330/article/details/51477769

Guess you like

Origin www.cnblogs.com/ouyangkai/p/10938031.html