CreateDispatch 导致 Vista 变得紧张

发布于 2024-08-02 16:37:42 字数 157 浏览 1 评论 0原文

我通过调用 CreateDispatch("Word.Application") 创建一个 word 实例。这工作正常,但在 Vista 中它会导致出现有关服务器正忙的对话框,并且您必须多次点击“切换到”按钮。每次执行此操作都会弹出开始菜单,直到最终打开Word。有人知道为什么以及是否有解决办法吗?

I am creating an instance of word by calling CreateDispatch("Word.Application"). This works fine except in Vista it causes the dialog about the server being busy to come up and you have to keep hitting the "switch to" button several times. Each time you do it pops up the start menu until it finally opens word. Anybody know why and if there is a fix for this?

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

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

发布评论

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

评论(1

鸠魁 2024-08-09 16:37:42

如果您的 UI 线程正在等待 COM 服务器上的某些 OLE 自动化方法完成,就会发生这种情况 - 您可以尝试在非 UI 线程中创建对象,这样就不会阻塞 UI 线程?

This happens if your UI thread is waiting for some OLE automation method on a COM server to complete - you could try creating the object in a non-UI thread so that you don't block the UI thread?

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