VB6:名称与现有模块、项目或对象库冲突 [英] VB6: Name conflicts with existing module, project, or object library

查看:44
本文介绍了VB6:名称与现有模块、项目或对象库冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

打开一个 VB6 项目,我得到如下错误:

Opening a VB6 Project, I get errors like:

加载过程中出错.参考xyz.LOG

Errors during load. Refer to xyz.LOG

我打开日志文件并看到以下错误:

I open the log file and see these errors:

第 42 行:控件 XYZ 的类 Threed.SSPanel 不是加载控件班级.

Line 42: Class Threed.SSPanel of control XYZ was not a loaded control class.

在这种情况下,我可以看到问题是由于 Sheridan 3D Controls: C:\WINDOWS\system32\THREED32.OCX

In this case I can see the problem is due to the Sheridan 3D Controls: C:\WINDOWS\system32\THREED32.OCX

我认为该项目缺少一个组件,因此,VB6 > 项目 > 组件 > 勾选 Sheridan 3D Controls 并收到此错误:

I thought the project was missing a component so, VB6 > Project > Components > tick the Sheridan 3D Controls and got this error:

---------------------- Microsoft Visual Basic ---------------------------
名称与现有模块、项目或对象库发生冲突
--------------------------- OK 帮助 ---------------------------

---------------------- Microsoft Visual Basic ---------------------------
Name conflicts with existing module, project, or object library
--------------------------- OK Help ---------------------------

推荐答案

我会给你最好的方法来摆脱这个问题.我遇到过很多方法,但这是最好的处理方式..

I will give you the best way to get rid of this problem. I came across many ways, but this is the most best way to deal with..

关闭项目.右键单击 vb 项目并用记事本打开(而不是用 vb).此项目文件将仅包含有关项目中使用的表单和模块的所有引用、库和信息.

Close the project. Right click on the vb project and open with notepad (not with vb). This Project file will only consist of all the references, libraries and information about forms and modules used in the project.

现在只需删除冲突的模块或组件文件,您有问题,只需删除整行..保存并关闭它现在打开项目并添加组件.我发誓你不会得到那个错误.

Now just remove the conflicting module or component file, you have problem, by just deleting the entire line.. Save and close it and now open the project and add component. I swear you wont get that error.

谢谢.享受

这篇关于VB6:名称与现有模块、项目或对象库冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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