注册.Net(带COM组件)&依赖于.Net Dll的Windows服务

编程入门 行业动态 更新时间:2024-10-21 03:52:00
本文介绍了注册.Net(带COM组件)&依赖于.Net Dll的Windows服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好, 在当前项目中包含大约600个二进制文件(dll',exe',ocx'等),我需要识别具有COM组件的.NetDll',我可以理解,在这种情况下,使用Regasm的注册是强制性的(当且仅当.NetDll有COM组件时), 但是,我的查询, 1.如何识别这样的 Dll'需要注册(否则嵌入式COM组件)我需要如何隔离.NetDll'(注册/非注册)。 另外,我使用.Net Reflector工具来识别/隔离Dll'的(.Net Dll'/ Non-.Net Dll'(Win 32',COM -Dll'),但是我需要以编程方式聚焦/如果有可用的开源工具可以更多地关注区分(.Net Dll与COM组件和纯.Net dll')。 2.是否在上面的.Net Dll中添加接口/方法(COM组件)和我一样在ATL-COM项目中实现(DllRegisterServer - 在COM-DLL中添加接口/方法等)。 ? 3.如何确定上述.Net Dll的Windows服务对我的项目的依赖性,例如,假设Print_XYZ.dll(带有COM组件的.Net Dll)依赖于Windows服务的启动/停止(services.msc)。 (即,给定.Net Dll / COM组件) ,如何得出结论上面提到的.Net Dll依赖于打印后台处理程序服务(Windows服务)。 解决上述查询的任何帮助都是可观的。 谢谢和问候, VishaK_90

Hi All, In current project consisting of about 600 binaries(dll''s,exe''s,ocx''s etc.,) I need to identify .NetDll''s which has COM component, As I can understand, in such scenario''s Registration using Regasm is mandatory (if and only if the .NetDll''s have COM components), But, my query , 1. how to identify such Dll''s requiring registration(otherwise embedded COM components) how I need to segregate .NetDll''s (Registration/Non-Registration). Also, I used .Net Reflector tool to identify/segregate Dll''s(.Net Dll''s / Non-.Net Dll''s(Win 32''s , COM -Dll''s), but I need to focus programatically /if available open source tool to throw more light on differentiating (.Net Dll with COM Component and pure .Net dll''s). 2. Is the adding interfaces/methods within the above .Net Dll(COM component) same as we would implement in ATL-COM Project(DllRegisterServer - Adding Interface/methods etc., in COM-DLL). ? 3. How also, one determines, the dependency of Windows Services of the above .Net Dll from my project., for eg., Assuming Print_XYZ.dll (.Net Dll with COM component) is dependent on start/stop of windows services (services.msc). (ie., given a .Net Dll/COM component , how one could one conclude the above mentioned .Net Dll is dependent on print spooler services(windows services). any assistance in resolving the above queries would be appreciable. Thanks & Regards, VishaK_90

推荐答案

也许您可以设计一个程序,通过反射动态加载程序集(即 Assembly.Load ),然后使用GetExportedTypes集合迭代导出的类型并检查types属性。我相信你可以通过这种方式检查ActiveX组件的类型依赖性以及com接口的暴露。 Probably you may design a program that dynamically loads the assemblies thru reflection (i.e. Assembly.Load) then iterating thru exported types using GetExportedTypes collection and inspect the types property. I''m sure you may inspect the type dependency on ActiveX components and also exposure of com interfaces this way.

更多推荐

注册.Net(带COM组件)&依赖于.Net Dll的Windows服务

本文发布于:2023-11-15 23:50:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1599075.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:组件   依赖于   Net   amp   Windows

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!