免注册COM在部署方面具有很大的优势,在本文中,我将给出在VS2010中编译免注册COM组件的具体步骤。假设有COM组件工程X以及使用该X组件的工程Y。
在X工程的属性页中做如下设置:
- 将Linker->Manifest File->Enable UserAccount Control(UAC)设置为No (/MANIFESTUAC:NO)。
- 将Manifest Tool->General->AssemblyIdentity设置为$(TargetName),version=1.0.0.0,type=win32。
- 将Manifest Tool->Input andOutput->Embed Manifest设置为Yes。

本文详细介绍了如何编译生成免注册的COM组件,包括在项目设置中调整Linker和Manifest Tool的参数,如关闭UAC、设置AssemblyIdentity、嵌入清单、配置Isolated COM等,以实现组件的独立运行。
最低0.47元/天 解锁文章
2623

被折叠的 条评论
为什么被折叠?



