如何确定给定的COM库的线程模型? [英] How to determine Threading Model of given COM library?
本文介绍了如何确定给定的COM库的线程模型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个COM库,我应该在我的ASP.NET MVC应用程序中使用。但是我不能确定它的线程单元模型。如何确定的呢?
I have a COM library I should use in my ASP.NET MVC application. However I am unsure about its thread apartment model. How can I determine it?
推荐答案
确定组件的 CLSID
使用此键在注册表:
Determine the component's CLSID
from the registry using this key:
HKEY_CLASSES_ROOT\{component's progid}\CLSID
然后查找了的ThreadingModel
使用此注册表项
HKEY_CLASSES_ROOT\CLSID\{component's clsid}\InprocServer32\ThreadingModel
这篇关于如何确定给定的COM库的线程模型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文