windows - 注册COM组件需要什么?

标签 windows com registry

我是一名刚刚接触 COM 的 .NET 开发人员。我想知道注册COM组件需要什么?注册期间会发生什么。

最佳答案

In order for the OS to find a component when a program needs it, it must be registered with the system. The system then records it in the Registry.

Usually a component is registered by running the program REGSVR32.EXE, which assumes that the component has been properly coded to support the DLLRegisterServer() public method. Executing regsvr32.exe should respond with a dialog box indicating success or failure of the registration.

阅读

Understanding COM Component Registration

关于windows - 注册COM组件需要什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1542075/

相关文章:

com - 从非托管 C++ 调用托管代码(c#)的最佳方法

c# - Windows-7:当网络适配器处于隐藏状态时禁用网络适配器上的互联网连接共享?

windows - 使用 PowerShell 从注册表项中检索信息

c++ - 在 Linux 上使用 g++ 输出错误,在 Windows 上更正

适用于 UWP 和经典桌面的 C++ 通用 Windows DLL

c - 拖动窗口的左边框时无法摆脱抖动

multithreading - 在异步可插拔协议(protocol)线程中 - 如何将其关联/解析到实现::SetSite() 的特定 COM 对象?

c# - CompileAssemblyFromDom 抛出 FileNotFoundException

c++ - 未找到 UInt32x32To64 标识符

C 编程写入注册表不起作用? RegSetValueEX 错误