|
|
|
Click here to copy the following block |
Function GetClassesByInterface(ByVal TypeLibFile As String, _ ObjectOrInterfaceIID As Variant) As Collection Dim TLI As New TLIApplication Dim TypeLibrary As TypeLibInfo Dim Class As CoClassInfo Dim Interface As InterfaceInfo Dim IID_objInterface As String Set GetClassesByInterface = New Collection Set TypeLibrary = TLI.TypeLibInfoFromFile(TypeLibFile) If VarType(ObjectOrInterfaceIID) = vbString Then IID_objInterface = ObjectOrInterfaceIID Else IID_objInterface = TLI.InterfaceInfoFromObject(ObjectOrInterfaceIID) _ .Guid End If For Each Class In TypeLibrary.CoClasses For Each Interface In Class.Interfaces If StrComp(Interface.Guid, IID_objInterface, vbTextCompare) = 0 Then GetClassesByInterface.Add Class.Name, Class.Name Exit For End If Next Next End Function |
|
|
|
Submitted By :
Nayan Patel
(Member Since : 5/26/2004 12:23:06 PM)
|
|
|
Job Description :
He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting. |
View all (893) submissions by this author
(Birth Date : 7/14/1981 ) |
|
|