Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想通过后期绑定访问 COM 库。 我怎样才能找到它的 progID?
Type oClassType = Type.GetTypeFromProgID("THE MISSING PROGID");
progID 通常采用 Library.Class 的形式,您可以使用 oleview 查看 COM 库公开的类。
您在 oleview 中想要的功能是 View TypeLib(三个红色小三角形)。库名称将位于顶部,您将希望使用在 CoClasses 下看到的类名称