VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



type library browser

by Arne Elster (23 Submissions)
Category: OLE/COM/DCOM/Active-X
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (16 Votes)

We all know VB`s lovely object browser.
Just select a library and view its types and their members.
But - how can VB get that names?
There were several attempts, but they all used the same lib the VB IDE uses (at least I think it does) - TLBINF32.dll.
This is an experiment on how to do it without this lib.
The trick is: a COM DLL has a type library stored in it.
The API oleaut32.LoadTypeLib() lets you load it and returns an ITypeLib interface to you.
From that point you just have to know the functions ITypeLib and ITypeInfo offer, the rest is frippery ;)
This class can handle functions, their parameters, enums, udts, coclasses and aliases. But its only an experiment and for learning purposes, not meant to be a fully working type library browser.

Rate type library browser

Download type library browser

Download type library browser (10 KB)

type library browser Comments

No comments have been posted about type library browser. Why not be the first to post a comment about type library browser.

Post your comment

Subject:
Message:
0/1000 characters