当 Spy++ 时 EM_GETLINE 失败正在运行

发布于 2024-08-22 07:41:48 字数 127 浏览 1 评论 0原文

我的应用程序在 Windows XP 上运行,某些对话框中有一个编辑框。当我在此控件上发出 EM_GETLINE 时,它返回其内容并且没问题,但是当我启动 Spy++ 时,该控件突然开始表现不正确,并且始终返回一个空字符串。可能有什么问题?

There is an edit box in some dialog in my application, which is running on Windows XP. When I issue EM_GETLINE on this control, it returns its contents and it's ok, but when I start Spy++ the control suddenly starts behaving incorreclty and always returns an empty string. What might be a problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

迷路的信 2024-08-29 07:41:48

问题出在缓冲区大小上。 Win200 认为 1 个字节足以返回控件内的文本,但 WinXP 认为缓冲区必须至少有两个字节长。

The problem was in a buffer size. Win200 thinks that 1 byte is good enough to return the text inside the control, but WinXP thinks that the buffer must be at least two bytes long.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文