VB6: Name conflicts with existing module, project, or object library

Jeremy Thompson picture Jeremy Thompson · Nov 10, 2014 · Viewed 13.2k times · Source

Opening a VB6 Project, I get errors like:

Errors during load. Refer to xyz.LOG

I open the log file and see these errors:

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

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

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

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

Answer

Srinivasan picture Srinivasan · Aug 10, 2017

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..

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.

Thank you. Enjoy