Regsvr32 用法和错误消息的说明
!agtgS$qII 对于那些可以自行注册的对象链接和嵌入 (OLE) 控件,例如动态链接库 (DLL) 文件或 ActiveX 控件 (OCX) 文件,您可以使用 Regsvr32 工具 (Regsvr32.exe) 来将它们注册和取消注册。
F< #!83*% Regsvr32.exe 的用法
mp x/~`c RegSvr32.exe 具有以下命令行选项: Regsvr32 [/n] [/i[:cmdline]] dllname
Q(e 3-a /u - Unregister server<BR/>
0Q_@2 /i - Call DllInstall passing it an optional [cmdline];
al3[Ph5G when used with /u calls dll uninstall
nPj/C7j /n - do not call DllRegisterServer; this option must
LpJ_HU7@lk be used with /i
$*u{i4b 当您使用 Regsvr32.exe 时,它会尝试加载该组件并调用它的 DLLSelfRegister 函数。如果此尝试成功,Regsvr32.exe 会显示一个指示成功的对话框。如果此尝试失败,Regsvr32.exe 会返回一条错误消息,其中可能会包括一个 Win32 错误代码。要查看 Win32 错误代码的列表,请参见下面的 Microsoft Web 站点:
rLm:qu(F1 http://msdn.microsoft.com/librar ... n32_error_codes.asp dGb]`* E 例如,要手动注册 Sample.ocx ActiveX 控件,请在 MS-DOS 提示符处键入以下命令:
c*"TmDY c:\regsvr32.exe sample.ocx
s3LR6Z7;i Regsvr32.exe 错误消息
J&