[DllImport("user32.dll", EntryPoint = "SetWindowLongA", SetLastError = true)]//
private static extern long SetWindowLong(IntPtr hwnd, int nIndex, long dwNewLong);SetWindowLong(appWin, GWL_STYLE, WS_VISIBLE);
检测到 PInvokeStackImbalance
Message: 对 PInvoke 函数“AppControl!AppControl.ApplicationControl::SetWindowLong”的调用导致堆栈不对称。原因可能是托管的 PInvoke 签名与非托管的目标签名不匹配。请检查 PInvoke 签名的调用约定和参数与非托管的目标签名是否匹配。
真不知道哪里不匹配了
private static extern long SetWindowLong(IntPtr hwnd, int nIndex, long dwNewLong);SetWindowLong(appWin, GWL_STYLE, WS_VISIBLE);
检测到 PInvokeStackImbalance
Message: 对 PInvoke 函数“AppControl!AppControl.ApplicationControl::SetWindowLong”的调用导致堆栈不对称。原因可能是托管的 PInvoke 签名与非托管的目标签名不匹配。请检查 PInvoke 签名的调用约定和参数与非托管的目标签名是否匹配。
真不知道哪里不匹配了
解决方案 »
- 请前辈推荐一个项目管理的软件,对软件开发进行全程管理,请前辈推荐一下!小弟先感谢了!
- 数据库字段值为I或O,要怎样在datagridveiw上显示为发送或接受值?
- [求助]設置控件的屬性A,屬性B也跟著變化并在PropertyGrid中呈現...愚翁老大請進!
- WebService传递数据流量大小问题
- 取出的DataTable绑定不了DataGridView.
- 你机上的QQ已经达到个数限制,不能再启动新的QQ!急 ~!解决在+100分
- insert 时的数据问题。
- C#使用chart控件获得数据库数据绘曲线图
- button1 怎么拖动它还是button1
- c#窗体
- 关于socket服务用异步方式的问题。
- 求一正则表达式的写法
private const int WS_VISIBLE = 0x10000000;
form.visible = true/false就可以