VB6: name conflicts with existing library of modules, projects or objects

When opening a VB6 project, I get error messages like:

Loading errors. Refer to xyz.LOG

I open the log file and see these errors:

Line 42: The XYZ control's Threed.SSPanel class was not a loaded control class.

In this case, I see that the problem is with the Sheridan 3D controls: C: \ WINDOWS \ system32 \ THREED32.OCX

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

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

+5


source to share


2 answers


The way to fix this problem is to start a new VB6 project> Project Menu Components> Check the components selected in the affected project until you get the error.

---------------------- Microsoft Visual Basic ---------------------- --- -
Name conflicts with existing library of modules, projects or objects

--------------------------- OK Help --------- ------------ ------

You need to narrow it down to two OCXs that are conflicting.

In my case, I narrowed it down to Sheridan 3D Controls / THREED32.OCX and Outrider Spin Control / SPIN32.ocx

To fix the problem, I used RegSvr32 to unregister the OCX - make sure you register with the / u flag.

REGSVR32 "C:\WINDOWS\system32\THREED32.OCX" /u   

      

Then I copied the OCXs into the project folder and registered them again using:

REGSVR32 "C:\Dev\Project\THREED32.OCX"

      



Then in the project with the problem> Project Menu Components> select an item in the list of Sheridan 3D / THREED32.ocx controls (you cannot check the checkbox without getting an error or disable the conflicting one selected as its in use)> click Browse and specify its in your project folder, not C: \ WINDOWS \ system32 \


Another trick is to close the project and unregister the affected ocx - make sure you register it with the / u flag, for example

RegSvr32 "c:\Windows\system32\mscomctl.ocx" /u   

      

Then open the project> Components> and you will see that "Microsoft Windows Common Controls 6.0 (SP6)" uses the OCX file in C: ... \ Microsoft Vi .. \ VB98 \ mscomctl.ocx "and not C: \ Windows \ system32 \ mscomctl.ocx.

Then the project should load without these errors:

Errors during load. Refer to xyz.LOG

      

+3


source


I will give you the best way to get rid of this problem. I have come across many ways, but this is the best way to handle it.

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



Now just remove the conflicting module or component file you have a problem by simply deleting the whole line. Save and close it and now open the project and add the component. I swear you won't get this error.

Thank. Enjoy

+3


source







All Articles