PInvokeStackImbalance C# call to unmanaged C++ function

前端 未结 5 1803
礼貌的吻别
礼貌的吻别 2020-12-05 00:09

After switching to VS2010, the managed debug assistant is displaying an error about an unbalanced stack from a call to an unmanaged C++ function from a C# application.

<
5条回答
  •  借酒劲吻你
    2020-12-05 00:30

    It's good.I update function define as follow:

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

    It works well.

提交回复
热议问题