添加属性:CallingConvention=CallingConvention.Cdecl
如:
[DllImport(“TwiHikVision.dll”, EntryPoint=“GetFirstPic”,CallingConvention=CallingConvention.Cdecl)]
public static extern string GetFirstPic(string videoFileName, string exportFilePath);
出处:https://blog.csdn.net/cai_huan_123/article/details/49175401
最后
以上就是虚心乌龟最近收集整理的关于对 PInvoke 函数调用导致堆栈不对称的全部内容,更多相关对内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复