VB6错误加载项目 [英] VB6 Error Load Project

查看:116
本文介绍了VB6错误加载项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我在这里遇到了一些问题。目前我正在使用VB6.0做一些项目

,几天后我无法打开项目。我检查所有可能导致此问题发生的可能性,我找不到任何。并且只发生在我的电脑里。我已经尝试使用不同的计算机,它可以一如既往地打开。但在我的电脑上,当我尝试打开项目时会显示如下。



加载时出错。请参阅'C:\ document&setting\joe \ desktop\inventory\frmItemSetup.log'了解更多详情。



当我查看日志文件时。



i找到这个:

第1015行:控制DBGrid的类vbAcceleratorSGrid6.vbalGrid不是一个加载的控件类。



我的电脑是否缺少任何组件或要求?



非常感谢...

解决方案

这可能是

之一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,确保你的名字完全正确。

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


Hello,

i have some problem here. currently im doing some project using VB6.0
and after a few day i cannot open the project. i check all the possiblelity that can causes this problem happend i can't find any. and only happend in my computer. i already try using different computer and it can open as always. but in my computer when i try to open the project will display like this.

"error during load. Refer to 'C:\documents and setting\joe\desktop\inventory\frmItemSetup.log' for more details."

and when i check into the log files.

i find this:
"Line 1015: Class vbAcceleratorSGrid6.vbalGrid of control DBGrid was not a loaded control class."

is any component or requirement are missing from my computer??

thank you very much...

解决方案

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)

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

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


这篇关于VB6错误加载项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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