VB6 + Componentone在Windows7下开发的应用程序
这是故障排除问题。
我们的应用程序的开发环境是VS2005 C/C++,基于VB6的GUI。
我们还使用 componentone 进行 ActiveX 控件(vsflexgrid8)。
应用程序在Windows XP中表现良好,但在Windows 7中,GUI存在一些问题。
在 Windows 7 中重建了几乎所有 C/C++ 代码和 VB6 代码
我们的构建系统非常糟糕,因为我一个月前加入了这个团队,所以构建所有代码有点困难
但是我认为这(可能)最后一个问题与构建无关。
所有其他进程和 GUI 进程都启动良好。但是当点击GUI中的某些菜单时,所有用户控件都将失效。
错误消息看起来像这样:
发生“-2147417848 (80010108)” 运行时错误。
自动化错误。
调用的对象已断开连接 客户端。
上面的消息与真实消息不同,因为真实消息是我们的母语(韩语)。
当谷歌搜索此消息时,我能够收集一些信息。
最可能的情况是使用 Microsoft Office 对象的 OLE 自动化。
但我们的GUI(VB6开发)不使用Microsoft Office Objects。
引起问题的页面/控件通常使用组件模块。
所以,如果遇到类似问题,请帮助我。
在虚拟机Windows XP模式下,没有问题。但我非常愿意在这样的环境下发展。
感谢您的帮助。
This is trouble shooting question.
Our application's development environment is VS2005 C/C++, VB6 based GUI.
we use also componentone for ActiveX control(vsflexgrid8).
application performed well in Windows XP, but in Windows 7, there is some problem in GUI.
rebuilded almost all C/C++ code and VB6 code in Windows 7
our build system is so poor and because I joined this team a month ago, building all codes are a bit hard
But this (maybe) last problem is not related to build, I think.
all other processes and GUI process are start well. but when click some menu in GUI, all user controls become invalid.
error message seems like this:
'-2147417848 (80010108)' occured
runtime error.Automation error.
Invoked Object disconnected from
client.
above message is not identical to real message since real message is our native language(Korean).
when googling with this message, I'm able to gather some informations.
the most possible case is when using OLE Automation for Microsoft Office Objects.
But our GUI(VB6 developed) does not use Microsoft Office Objects.
And problem-causing page/control's are commonly use componentone modules.
So, if experienced similar problems, please help me.
In Virtual Machine Windows XP mode, there is no problem. But I'm strongly willing to develop in this environment.
Thank you for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
“自动化错误”仅意味着 ActviveX 控件内部引发了错误,但开发人员没有向其添加描述。所以原因可能是任何事情。
此类错误的常见来源是受保护文件夹(例如 Program Files 文件夹)的写入错误或禁止的注册表读/写操作。您可以尝试将该程序安装到其他位置或以提升的权限运行它。
希望这至少有一点帮助。
'Automation Error' just means that an error was raised from within the ActviveX control, but that the developpers did not add a description to it. So the cause could be anything.
A common source for this kind of errors are write errors to protected folder (The Program Files folder for instance) or forbidden Registry Read/Write actions. You could try installing the program to another location or to run it elevated.
Hope this helps at least a little.
正如 Dabbler 所说,这意味着 ActiveX 组件中存在错误。
As Dabbler says, this means there has been an error in the ActiveX component.
我通过Windows更新解决了这个问题。
由于一次执行大约20~30个更新,我不知道什么更新可以解决这个问题。
我猜想 Visual Studio 2005 安全更新可能是造成此问题的原因。
不管怎样,我的应用程序在我的 Windows 7 机器上运行良好。
感谢大家。
I solved this problem by Windows Updates.
Since about 20~30 updates are performed at once, I can't know what update solves this.
I guess Visual Studio 2005 security updates may the reason for this trouble.
Anyway, my application runs well in my Windows 7 machine.
Thanks to All.