如何在Win7 64Bit OS中安装VB6 [英] How To Install VB6 In Win7 64Bit OS

查看:111
本文介绍了如何在Win7 64Bit OS中安装VB6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有没有办法在

windows 7终极版64位操作系统中安装vb6?



我安装了vb6。 0到我的笔记本电脑与上述规格成功,但当我加载我的项目时,vb6一直在问我加载项目的错误,因为某些组件丢失或无法加载。它保持弹出.ocx文件是加载错误。它类似于vb6dgrid.ocx,缺少vb6gdlist.ocx引用。我确实尝试了所有可行的方法来修复它,包括从CHill60遵循这一伟大的步骤,但仍未能解决。这是一步:



这可能是

之一1.你在机器上缺少组件vbalSGrid6.ocx

2.您的vbalSGrid6.ocx副本已过期或已损坏

3. vbalSGrid6.ocx尚未在无法加载的PC上注册



如果以前有用,那么请考虑自上次在这台机器上工作以来你安装或卸载的内容



OP报告问题未解决。尝试以下步骤来缩小问题范围......在您遇到问题的机器上执行此操作



1.打开一个新的Visual Basic 6项目 - 标准EXE

2.将DBGrid组件添加到项目,组件

3.记下OCX的位置和名称(我的名字可能错误!)

4.在表格上放置一个DBGrid

5.保存并构建项目



如果你有到目前为止,你已经证明你机器上的vbalSGrid6.ocx还可以。如果你不能做到这一点那么你需要卸载并重新安装组件(无论如何这可能是一个好主意)



如果到目前为止一切都很好然后携带检查以下内容...



6.使用文本编辑器(例如记事本,Notepad ++,UltraEdit等)从上面的4打开Project1.vbp

7.找到类似的行(数字将与此示例不同)

隐藏复制代码

Object = {C932BA88-1234 -1234-A56C-00AA003668DC}#1.1#0; vbalSGrid6.ocx

8.现在对你的(真实)项目做同样的事情 - 文本应该完全相同

9.如果没有,那么从Project1复制一行.vbp并替换项目中的行vbp

10.对Form1.frm和项目中具有此网格的表单执行相同操作。这一行看起来像

隐藏复制代码

Object ={F9043C88-1234-1234-A3C9-08002B2F49FB}#1.2#0; vbaSGrid6.ocx

并且会出现在.FRM文件的顶部附近。



11.如果没有这样的行FRM文件或者如果该行与Form1.frm中的行不完全匹配则将其复制到



现在在Visual Basic IDE中打开您的项目并且它应该加载好的。



如果一切都不起作用,那么考虑重建有问题的表格 - 允许加载(如果提示在错误后继续加载项目)然后点击是)

网格可能会被转换为PictureBox - 删除它。

重新添加Grid,确保你的名字完全正确。

你需要重做任何配置(属性),但后面的代码仍然可以。



所以我问专家是否有任何可能的方法让我修复它?

i试图摆脱vb6,但你知道我没有选择,因为我需要对这种语言进行比较。非常感谢。

解决方案

看看这里:

如何在Windows 7 professional 64bit上安装Visual Studio 6 [ ^ ]

http://stackoverflow.com/questions/10495680/installation-of- vb6-on-windows-7-or-windows-8 [ ^ ]

http://techapple.net/2013/10/installing-and-运行微软 - 视觉基本-6-0-ON-Windows的7windows- 8-x64-64-bit-with-all-features / [ ^ ]



如果遇到问题,我建议安装MS Windows XP虚拟机,然后在其上安装VB6;)

在Windows 7中安装和使用Windows XP Mode [ ^ ]

Is there any possible way for me to install vb6 in
windows 7 ultimate edition 64bit Operating System?

I install vb6.0 to my laptop with above specification with successful but when i load my project the vb6 keep asking me error to load the project because of the some component are missing or failed to load. Its keep popup the .ocx file are error to load. It's something like vb6dgrid.ocx and vb6gdlist.ocx reference are missing. I did trying to do all the possible way to fix it including to follow this great step from CHill60 but still failed to fix. This is the step:

This could be one of
1. You are missing the component vbalSGrid6.ocx on your machine
2. Your copy of vbalSGrid6.ocx is out of date or corrupt
3. vbalSGrid6.ocx has not been registered on the PC where it won't load

If this was previously working then consider what you have installed or uninstalled since it last worked on this machine

[EDIT] OP reports problem not resolved. Try these steps to narrow down the issue...Do this on the machine that you are having problems with

1. Open a new Visual Basic 6 Project - Standard EXE
2. Add the DBGrid component to the Project, Components
3. Take note of the location and name of the OCX (I may have got the name wrong above!)
4. Place a DBGrid on the form
5. Save and Build the project

If you got this far, then you have proven that the vbalSGrid6.ocx on your machine is ok. If you couldn't get this far then you need to uninstall and reinstall the component (which might be a good idea anyway)

If everything is fine so far then carry on to check the following ...

6. Open up your Project1.vbp from 4 above using a text editor (e.g. Notepad, Notepad++, UltraEdit etc)
7. Find the line that says something like (the numbers will be different to this example)
Hide Copy Code
Object={C932BA88-1234-1234-A56C-00AA003668DC}#1.1#0; vbalSGrid6.ocx
8. Now do the same with your (real) project - the text should be exactly the same
9. If not, then copy the line from Project1.vbp and replace the line in your project vbp
10. Do the same with Form1.frm and the form in your project that has this grid on it. This time the line will look something like
Hide Copy Code
Object = "{F9043C88-1234-1234-A3C9-08002B2F49FB}#1.2#0"; "vbaSGrid6.ocx"
and will appear near the top of the .FRM file.

11. If there is no such line in the FRM file OR if the line does not exactly match the one in Form1.frm then copy it across

Now open your project in the Visual Basic IDE and it should load ok.

If all that doesn't work then consider rebuilding the form that has the problem - allow it to load (if prompted to continue loading the project after the error then hit Yes)
The grid will probably be converted into a PictureBox - remove that.
Add the Grid back on again, ensuring that you get the name exactly right.
You will need to redo any configuration (properties) but the code behind should still be ok.

so i am asking the expert that is there any possible way for me to fix it or not?
i trying to get rid from vb6 but u know that i dont have a choice because i need to do a comparison between this language. Thank you very much.

解决方案

Have a look here:
How to install Visual Studio 6 on Windows 7 professional 64bit[^]
http://stackoverflow.com/questions/10495680/installation-of-vb6-on-windows-7-or-windows-8[^]
http://techapple.net/2013/10/installing-and-running-microsoft-visual-basic-6-0-on-windows-7windows-8-x64-64-bit-with-all-features/[^]

In case of trouble, i'd suggest to install MS Windows XP Virtual Machine and then to install VB6 on it ;)
Install and use Windows XP Mode in Windows 7[^]


这篇关于如何在Win7 64Bit OS中安装VB6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆