使用 Richedit 控件时,基于对话框的 Win32 API 程序将不会显示窗口

发布于 2025-01-08 11:03:10 字数 343 浏览 3 评论 0原文

我编写了一个基于对话框的 Windows 应用程序,其中包含两个编辑控件和两个按钮控件。 ResEdit 1.5.9-x64 用于创建对话框窗口并放置/定位控件。该程序编译并运行完美,一切都按预期工作。

但是,一旦我将 richedit 控件放在对话框窗口上,应用程序就可以正确编译,但当我尝试运行它时,什么也没有发生。该窗口不再出现,并且 Windows 任务管理器显示没有正在运行的程序实例。我在网上和 stackoverflow 上搜索过有关此问题的一些帮助,但没有找到任何内容。

此时,我所做的就是将 richedit 控件放置在对话框上。我不想在程序中以任何方式与它交互。

谁能帮助我或指出我缺少哪一步的正确方向?

I've written a dialog-based Windows application that contains two edit controls and two button controls. ResEdit 1.5.9-x64 was used to create the dialog window and place/position the controls. The program compiles and runs perfectly and everything is working as intended.

However, as soon as I place a richedit control on the dialog window, the application compiles without error, but when I try to run it, nothing happens. The window no longer appears and the Windows Task Manager shows no running instance of the program. I've searched online and on stackoverflow for some help with this issue, but I haven't found anything.

At this point, all I have done is place the richedit control on the dialog. I am not trying to interface with it in any way within the program.

Can anyone help me out or point me in the right direction as to what step I am missing?

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

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

发布评论

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

评论(1

少女七分熟 2025-01-15 11:03:10

杰西的评论解决了问题,但是,我无法标记已回答的问题。所以我使用我自己的问题链接的答案。

“在创建对话框之前,需要调用LoadLibrary函数来加载Riched32.dll、Riched20.dll或Msftedit.dll。”引用自这里。 – 杰西 1

Jesse's comment solved the problem, however, I was unable to mark the question answered. So I am using the answer my own question link.

"It is necessary to call the LoadLibrary function to load Riched32.dll, Riched20.dll, or Msftedit.dll before the dialog is created." Quote taken from here. – Jesse 1

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