CRXIR2 不适用于 Windows 7 或 Vista 上的 VS2010

发布于 2024-09-03 04:39:11 字数 588 浏览 7 评论 0原文

我们正在从 VS2005 升级到 VS2010。 我们快要完成了,但是 Crystal Reports 出现了问题。 我们在 C++ 应用程序中使用 RDC(基于 COM)组件。

在 Windows 7 或 VISTA 上,我无法使查看器或设计器控件工作。 当激活控件时,我遇到访问冲突:

// from atlhost.h (line 2208)
hr = m_spOleObject->DoVerb(OLEIVERB_INPLACEACTIVATE, NULL, spClientSite, 0, m_hWnd, &m_rcPos);

奇怪的是,当我在 XP 计算机上运行相同的 exe 时,它​​似乎可以工作。

我们基本上使用“AtlAxWin100”窗口类来托管水晶报表控件(“CrystalReports11.ActiveXReportViewer.1”)。 我使用的是 SP6 版本的 Crystal reports,因此这是最新版本。

另外,当我用 VS2005 编译相同的代码并在 Windows7 或 Vista 上运行它时,一切都运行得很好。

有人知道可能导致问题的原因,或者进一步调查的想法吗?

We're upgrading from VS2005 to VS2010.
We are almost there but there is a problem with Crystal Reports.
We use the RDC (COM-based) component within our C++ application.

On Windows 7 or on VISTA, I can't get the viewer nor the designer controls working.
I get Access Violations when the control is activated:

// from atlhost.h (line 2208)
hr = m_spOleObject->DoVerb(OLEIVERB_INPLACEACTIVATE, NULL, spClientSite, 0, m_hWnd, &m_rcPos);

The strange thing is that when I run the same exe on a XP machine, it seems to work.

We basically use "AtlAxWin100" window class to host the Crystal report control ("CrystalReports11.ActiveXReportViewer.1") in.
I'm using the SP6 version of Crystal reports so that's the latest version.

Also, when I compile the same code with VS2005 and run it on Windows7 or Vista everything works out just fine.

Does anybody have any idea about what might cause the problem, or ideas for further investigations?

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

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

发布评论

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

评论(2

百变从容 2024-09-10 04:39:12

看起来和DEP有关系。

当然,如果我们完全关闭系统上的 DEP

bcdedit /set Nx AlwaysOff

,然后重新启动,
查看器工作了!

不幸的是,这是系统全局关闭。
之前我们尝试单独关闭 exe 的 DEP,但后来我们收到来自 Windows 的消息,不允许我们关闭 exe 的 DEP...

it looks like it has something to do with DEP.

If we turn off the DEP completely on the system with

bcdedit /set Nx AlwaysOff

and then reboot of course,
the Viewer works!

Unfortunately this is a system global turn off.
We tried to turn off DEP for our exe alone before, but then we got a message from Windows that we were not allowed to turn off DEP for our exe...

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