Regsvr32 用法和错误消息的说明 对于那些可以自行注册的对象链接和嵌入(OLE) 控件,例如动态链接库(DLL) 文件或 ActiveX 控件(OCX) 文件,您可以使用 Regsvr32 工具() 来将它们注册和取消注册。 的用法 具有以下命令行选项: Regsvr32 [/u] [/n] [/i[:cmdline]] dllname /u - Unregister server<BR/> /i - Call DllInstall passing it an optional [cmdline]; when used with /u calls dll uninstall /n - do not call DllRegisterServer; this option must be used with /i 当您使用 时,它会尝试加载该组件并调用它的 DLLSelfRegister 函数。如果此尝试成功, 会显示一个指示成功的对话框。如果此尝试失败, 会返回一条错误消息,其中可能会包括一个 Win32 错误代码。要查看 Win32 错误代码的列表,请参见下面的 Microsoft Web 站点: http://msdn./library/en-dir/adsi/ 例如,要手动注册 ActiveX 控件,请在 MS-DOS 提示符处键入以下命令: c:\ 错误消息 以下列表介绍了 RegSvr32 错误消息和可能的原因。 Unrecognized flag:/invalid_flag 键入的标志或开关组合无效(请参阅本文中的“ 的用法”一节)。 No DLL name specified. 文件名(请参阅本文中的“ 的用法”一节)。 Dllname was loaded, but the DllRegisterServer or DllUnregisterServer entry point was not found. Dllname 文件。例如,键入 regsvr32 就会生成该错误消息。 Dllname is not an executable file and no registration helper is registered for this file type. Dllname 不是可执行文件(.exe、.dll )。例如,键入 regsvr32 就会生成该错误消息。 Dllname was loaded, but the DllRegisterServer or DllUnregisterServer entry point was not found. Dllname 可能未导出,或者内存中可能有损坏的 Dllname 版本。请考虑使用 Pview