开发者

Implement Interface Wizard - how to find the "type library" of an interface?

I want to implement (e.g) the IPersistFile interface via the "Impleme开发者_如何学运维nt Interface" Wizard in Visual Studio (2010), but I have to choose from the "Available type libraries" the one that has that interface. The MS documentation only says it is in "ole32.dll" (when I choose that file I get an error "No type library found in file ...").

How do I find which "type library" holds the (e.g) IPersistFile interface ?


For some interfaces you can look up containing type via registry HKEY_CLASSES_ROOT\Interface\<IID>\TypeLib, but note that an interface does not necessarily have to have a type library reference.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜