VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

type library browser

Arne Elster  (23 Submissions)   OLE/COM/DCOM/Active-X   Advanced   Wed 3rd February 2021

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 (16(16 Vote))

Download type library browser

type library browser Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters