Windows 7 上的 vb 6.0 程序
我一直在尝试在 Windows 7 上安装和运行用 vb 6.0 编写的程序。在 Windows XP 中安装和运行它运行良好。安装并运行后的错误消息说
Run-time error 339" : Component voice.ocx or one of its dependencies not correctly registered: a file is missing or invalid.
该程序有录音功能。
我手动注册该 ocx 组件,但仍然出现如下错误
The module "voice.ocx" failed to load.
,并且我尝试安装 VB 运行时,但仍然显示相同的错误。我相信Windows 7支持vb 6.0程序。
我不确定的一件事是我拥有的 ocx 组件是 16 位版本还是 32 位版本。我不认为我们不能在Windows 7中注册16位版本的ocx。
而且我也尝试以兼容模式甚至以管理员身份安装和运行。我认为这是一个与平台相关的问题?这可能是其他一些解决方法。所以,我很感谢您对这个可在 Windows 7 中运行的程序的提示或线索。
提前致谢。 问候, 看
I have been trying to install and run a program written in vb 6.0 on windows 7. It was working fine installing and running in windows xp. The error message after installing and running it say that
Run-time error 339" : Component voice.ocx or one of its dependencies not correctly registered: a file is missing or invalid.
This program has voice recording things.
I manually register that ocx component but still error that shown like
The module "voice.ocx" failed to load.
And I try to install VB run-time and still shows the same error. I believe that Windows 7 support vb 6.0 programs.
One thing here I am not sure of is that the ocx component I have is whether 16 or 32 bit version. I don't think we cannot register 16 bit version ocx in windows 7.
And I also try to install and run in compatibility mode or even as administrator. I think it is a platform related issue? And it might be some other work-around. So, I appreciate your hints or clues on this program runnable in windows 7.
Thanks in advance.
Regards,
SEE
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
只是为了防止其他人看到这个..这就是我所做的
我知道该程序在 Windows XP 上运行,安装了 Visual Basic。我只得到了 exe 和 MDB。所以我创建了一个 Windows XP 虚拟机(坚持我),安装了 Visual Basic 并测试了该应用程序。很好。然后我从 http://www.dependencywalker.com/ 下载了一个名为 Dependency Walker 的依赖工具。我在虚拟机中安装了它并要求它打开我的exe。
加载后,我忽略了警告并要求它开始分析。我运行了该应用程序,逐步浏览了我能看到的所有内容,然后退出了该应用程序。这给我留下了已访问的 DLL 的日志。慢慢地,我检查了它们是否存在于我的 Windows 7 设置中,当缺少一个时,我将其复制到我的应用程序目录,然后从提升的命令提示符运行“regsrv32 [missing_name.dll]”,直到我的 Windows 中没有文件7.台式机没有。
然后应用程序运行良好!由于第三方 OCX 或 DLL 的编写方式,这可能并不总是有效。但它可能会帮助某人。
Just encase anyone else sees this.. here is what I did
I knew the program was running on Windows XP, with visual basic installed. I had only been given the exe and the MDB. So I created a virtual machine (stick with me) of Windows XP, installed visual basic and test the app. It was fine. Then I downloaded a dependency tool called Dependency Walker from http://www.dependencywalker.com/. I installed this in the virtual machine and asked it to open my exe.
Once this was loaded I ignored the warnings and asked it to start profiling. I ran the app, stepped through everything I could see, then exited the application. This left me with a log of the DLLs that had been accessed. Slowly I went through these checking if they existed on my windows 7 setup, when one was missing I copied it to my application directory and then from an elevated command prompt run "regsrv32 [missing_name.dll]" until there were no files which my windows 7 desktop didn't have.
the application then worked fine! This may not work all the time, because of the way third party OCX's or DLLs have been written. But it may help someone out.
Windows 7 中很少不支持旧的 Win32 组件。Windows 7 中的 VB 程序可能会失败。
但是有一些可能的方法可以修复这些问题。
检查以下链接以获取相同的信息。
http://www.personalcomputerfixes。 com/general-errors/how-to-successively-fix-the-339-runtime-error/
http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/8cb5ab97-8407-4e49-8db6-30dcef87cbd1/
http:// /yang.articlesbase.com/operating-systems-articles/simple-solutions-on-how-to-fix-runtime-error-339-1830111.html
Few of old Win32 components are not supported in Windows 7. There are possibilities of failure of a VB Program in Windows 7.
But there are some possible ways to fix those.
Check the following links to avail the same.
http://www.personalcomputerfixes.com/general-errors/how-to-successfully-fix-the-339-runtime-error/
http://social.msdn.microsoft.com/Forums/en-US/vbpowerpacks/thread/8cb5ab97-8407-4e49-8db6-30dcef87cbd1/
http://yang.articlesbase.com/operating-systems-articles/simple-solutions-on-how-to-fix-runtime-error-339-1830111.html
我在 WinXP32 机器上用 VB5 开发了几个程序,然后将它们安装在 Windows 7(32 和 64)PC 上,没有出现任何问题。
该应用程序使用不同的 OCX(16 和 32 位版本),到目前为止我从未遇到过它们的问题。因此,我认为 VB5 或 Vb6 在 Windows 7 计算机上不会有任何问题。
另一方面,我会指出模块“voice.ocx”并调查它是否可以在 Windows 7 电脑上运行,因为正如 Katturaja 所说,一些旧的 ocx 在 win7 上有问题。为此,我将创建一个使用 voice.ocx 的简单 VB6 项目(只是一个 Hallo-World”),然后创建安装包,最后尝试在干净的 win7 计算机(例如虚拟机)上安装。在此 我希望这可以
帮助您。
I have developed several programs with VB5 on a WinXP32 machines and then installed them on Windows 7 (32 and 64) PCs without problems.
This applications use different OCXs (16 and 32 bit version) and till now I never get problem with them. Thus I do not think that the VB5 or Vb6 could have any issue on Windows 7 machines.
On the other hand I would point out the module "voice.ocx" and investigate if it can run on a windows 7 pc, because as Katturaja sais some old ocx have problem on win7. To do that, I would create a simply VB6 project that uses voice.ocx (just an Hallo-World"), then create the installation pack and finally try to install on a clean win7 machine (for example a virtual machine). In this way you could isolate the problem.
I hope this could help you.