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.
精彩评论