如何检查是否一个.NET的DLL注册?NET、DLL

2023-09-03 05:52:39 作者:我的爱一直很安静

我有.NET解决方案(用C ++编写COM别人一个项目是用C#),与它的库。

I have .NET solution (one project written in C++ COM others are written in C#) with its libraries.

我想提出一些starttest工具这将测试是否所有的C#,C ++库正确注册。我该怎么办呢?我怎么能问.NET如果一些C#或C ++ COM库regitered? BR

I would like to make some starttest-tool which would test if all C#, C++ libraries are correctly registered. How can I do that? How can I ask .NET if some C# or C++ COM library is regitered? br

推荐答案

一种方法是创建一个使用假想注册DLL的对象。如果它工作,那么你可以肯定它的正确注册的所有其他方法可能有点不可靠

One way is to create an object using the supposedly registered DLL. if it works then you can be sure its properly registered all other methods may be a bit unreliable