How to find out a COM prog id?

只愿长相守 提交于 2019-12-07 00:13:16

问题


I'd like to access a COM library via late binding.
How can I find out its progID?

Type oClassType = Type.GetTypeFromProgID("THE MISSING PROGID");

回答1:


The progID is generally going to be of the form Library.Class, you can view what classes a COM library exposes using oleview.

The feature you want in oleview is View TypeLib (three little red triangles). The Library name will be at the top and you will want to use the name of the class as seen under CoClasses



来源:https://stackoverflow.com/questions/1272061/how-to-find-out-a-com-prog-id

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!