如何使用C++检查tlb文件是否在注册表中注册? [英] How to check whether the tlb file is registered in registry using C++?
本文介绍了如何使用C++检查tlb文件是否在注册表中注册?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用c#创建了一个类库.我使用
I have created a class library using c#.And i have registered the class library using
重温..
RegAsm.exe Discovery.dll /tlb: Discovery.dll /codebase
现在我想知道程序集是否使用 C++ 注册.我需要,因为我必须检查这个 dll 的注册表,如果它没有注册,我必须注册它以编程方式,如果它已注册,那么我只需跳过它.
Now i want to know whether the assembly is registered or not using c++. I need because I have to check the registry for this dll if it is not registered I have to registered it programatically if it is registered then i simply skip it.
那么我如何知道程序集是否使用 C++ 注册...
so How can i know whether the assembly registered or not using c++...
推荐答案
你为什么要费心呢?如果它已经在那里,再次注册它没有坏处.
Why do you need to bother at all? There is no harm to registering it again if it IS already there.
这篇关于如何使用C++检查tlb文件是否在注册表中注册?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文