现在的位置: 首页 > 综合 > 正文

解决 函数调用导致堆栈不对称。原因可能是托管的 PInvoke 签名与非托管的目标签名不匹配。

2013年10月27日 ⁄ 综合 ⁄ 共 220字 ⁄ 字号 评论关闭

 http://www.cnblogs.com/ColdFish_Pegasus/archive/2011/10/09/2203523.html

改 [DllImport("winmm.dll", EntryPoint = "sndPlaySoundA",)]
为[DllImport("winmm.dll", EntryPoint = "sndPlaySoundA", CallingConvention = CallingConvention.Cdecl)]

 

抱歉!评论已关闭.