Register |
To register the COM classes (types of COM objects) implemented by a COM server, run RegSvr32 from the command line. It takes the name of the DLL, using full or relative path name, housing the in-process server as a command-line argument. RegSvr32 loads the DLL and calls DllRegisterServer .
In response, the DLL registers its COM classes. For example, RegSvr32 MyComSvr.dll registers COM classes implemented in MyComSvr.dll.
|
Unregister | To unregister a server's COM classes, run RegSvr32 using command-line flag /u , passing in the path to the DLL on the command line. RegSvr32 will load the DLL and call DllUnRegisterServer in the DLL. For example, RegSvr32 /u MyComSvr.dll
unregisters COM classes in MyComSvr.dll. RegSvr32 is usually found in the DevStudio\SharedIDE\bin directory. It may be in a different location on your system.
|
%systemroot%\System32 folder in Windows XP and later versions of Windows.Note On a 64-bit version of Windows operating system, there are two versions of the Regsv32.exe file: