Anti-registration method for COM components under Win2k.

zhaozj2021-02-17  50

Everyone will use the COM component when writing ASP or VB applications. However, the number or version of the component is more written, and the components registered on the machine will be very confusing. Sometimes even don't know that the program call is the version of the component. Below you will introduce several methods that can completely clear the components already registered in the system.

One. How to know which components in the system have been registered.

There are two ways:

1. Use Windows Component Services.

Open the component service in Win2K management tools. Expand "My Computer", expand "COM Applications", expand any application, right-click on "Components", "New Components", "Import the Registered Components". You can see existing components in the system in the list. Select "Details" to know the paths and CLSIDs stored in the component.

2. Tool

List the information of all components in the system in the "Tools" list in the "OLE / COM OBJECT View" of the VC.

two. How to register

The easiest way is of course running the Regsvr32 / U command for the component. However, if the set is deleted or not found, only the registration is reversed, the steps are as follows: Use the previous method to note the CLSID of the component. Then in the registry

HKEY_CLASS_ROOT / CLSID

HKEY_CLASS_ROOT / APPID /

HKEY_LOCAL_MACHINE / SOFTWARE / CLASSES / APPID /

Find the corresponding CLSID and delete it. Then, the component was successfully registered.

There may be a simpler method, welcome everyone to discuss.

转载请注明原文地址:https://www.9cbs.com/read-28766.html

New Post(0)