C# 调用c++错误A call to PInvoke function has unbalanced the stack

来源:互联网 发布:如何雇佣网络水军价格 编辑:程序博客网 时间:2024/05/16 12:46

错误信息:

A call to PInvoke function has unbalanced the stack. This is likely because the managed PInvoke .. (.NET 4)


解决方案:DLLimport中添加:

[DllImport(@"PlatformSDK.dll", CallingConvention = CallingConvention.Cdecl)]


阅读全文
1 0
原创粉丝点击