关于 regsvr32 x.dll
这个命令只是到x.dll
的软链接吗?如果我删除x.dll
,事情就不起作用了?
Does this command just soft links to x.dll
,say if I delete x.dll
things won't work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Regsvr32 调用 dll 导出的一个众所周知的函数,称为 DllRegisterServer。这样做的目的是允许 dll 在注册表中注册该 dll 实现的任何 COM 组件。
删除 dll 的确切影响取决于是否有任何客户端应用程序尝试创建和使用由 dll 实现的 COM 对象的实例。如果没有应用程序尝试这样做,则不会发生任何不好的事情。如果应用程序尝试执行此操作,则不良影响将仅限于该应用程序,并且取决于应用程序处理 COM API 将返回给它的错误代码的情况。如果应用程序表现良好并且 COM 对象对其功能而言并不重要,则应用程序将继续工作,尽管功能有所减少。如果应用程序编写得不好,它可能会崩溃。如果 COM 对象至关重要,应用程序可能会选择向用户显示错误并退出,或者只是快速失败。
Regsvr32 calls a well-known function exported by the dll, called DllRegisterServer. The purpose of this is to allow the dll to register in the registry any COM components implemented by the dll.
The exact impact of deleting the dll depends on whether there are any client apps that attempt to create and use an instance of COM objects implemented by the dll. If no app attempts to do it, nothing bad will happen. if an application attempts to do it, the bad effects will be limited to that application only and depend oh how well the application deals with the error code the COM API will return to it. If the application is well-behaved and the COM object is not crucial for it's functionality, the app will just continue working, albeit with a reduced functionality. If the app is badly written, it can crash. If the COM object is crucial, the app might choose to show an error to the user and exit, or just to fail fast.
regsvr32
程序调用 DLL 中的DllRegisterServer
入口点。The
regsvr32
program calls theDllRegisterServer
entry point in the DLL.