DOCUMENT:Q175156 16-OCT-1997 [vbwin] TITLE :PRB: Class Not Registered Error and Empty Components Dialog PRODUCT :Microsoft Visual Basic for Windows PROD/VER:WINDOWS:5.0 OPER/SYS:WINDOWS KEYWORDS:vb5all VBKBAX VBKBComp VBKBDesignTime VBKBEnv kberrmsg ====================================================================== --------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual Basic Control Creation, Learning, Professional, and Enterprise Editions for Windows, version 5.0 --------------------------------------------------------------------- SYMPTOMS ======== When you choose to view the Component dialog in Microsoft Visual Basic 5.0, either by clicking on the Project menu and selecting Components or by using the activation keys CTRL+T, the following error is displayed: Class not registered Looking for object with CLSID: {0002E005-0000-0000-C000-000000000046} After clicking OK, the Component dialog opens and no components are displayed. CAUSE ===== The Microsoft Component Category Manager Library, ComCat.DLL, is incorrectly registered. RESOLUTION ========== Correctly register ComCat.DLL using RegSvr32.Exe, a utility program that ships with Visual Basic and allows you to register DLL's and other files into the system registry. To correctly register ComCat.DLL, follow the steps below: 1. Verify that ComCat.DLL is located in the Windows 95 Windows\System folder or in the Windows NT Windows\System32 folder. If ComCat.DLL can not be located, copy it from the Visual Basic installation media into the appropriate folder. 2. From the Start menu, choose Run. 3. Type the following command into the Run dialog, replacing with the full path to your Windows\System folder: RegSvr32.Exe \ComCat.DLL MORE INFORMATION ================ OLE groups all components into functional categories called Component Categories. ComCat.DLL is used to identify the areas of functionality that a component may support and provides the functionality to register and unregister components into specific Component Categories. This way when Visual Basic opens the Components dialog it can categorize the components into Controls, Designers and Insertable Objects without displaying every object and class registered on the system. Steps to Reproduce Behavior --------------------------- 1. Unregister ComCat.DLL using RegSvr32.Exe RegSvr32.Exe /U \ComCat.DLL 2. Start Visual Basic 5.0 and create a new Standard EXE project. 3. From the Project menu, choose Components. The error message described above occurs. Note that when you click OK, no components are displayed. ====================================================================== Keywords : vb5all VBKBAX VBKBComp VBKBDesignTime VBKBEnv kberrmsg Version : WINDOWS:5.0 Platform : WINDOWS Hardware : x86 Issue type : kbprb ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 1997.