Home All Groups Group Topic Archive Search About

Object Model Extraction

Author
21 Oct 2005 4:52 PM
Nobody
Is there any tool available that will allow me to extract the information in
the
Object Browser (i.e. when I hit F2) into a file I can save?

TIA

Author
21 Oct 2005 5:13 PM
Someone
Add "TypeLib Information" reference to your project. I don't know how to use
this library.

INFO: Registry Entries Made by an ActiveX Component
http://support.microsoft.com/default.aspx?scid=kb;en-us;183771


Show quoteHide quote
"Nobody" <trin***@nobody.com> wrote in message
news:%233iEX$l1FHA.3180@TK2MSFTNGP14.phx.gbl...
> Is there any tool available that will allow me to extract the information
> in the
> Object Browser (i.e. when I hit F2) into a file I can save?
>
> TIA
>
>
Author
21 Oct 2005 5:30 PM
Ken Halter
"Someone" <nob***@cox.net> wrote in message
news:u3YE3Km1FHA.2540@TK2MSFTNGP09.phx.gbl...
> Add "TypeLib Information" reference to your project. I don't know how to
> use this library.

If interested.....

FILE: Tlbinf32.exe : Help Files for Tlbinf32.dll
http://support.microsoft.com/default.aspx?scid=kb;en-us;224331

Show quoteHide quote
> INFO: Registry Entries Made by an ActiveX Component
> http://support.microsoft.com/default.aspx?scid=kb;en-us;183771


--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Please keep all discussions in the groups..
Author
21 Oct 2005 5:14 PM
GrandNagel
Nobody wrote:
> Is there any tool available that will allow me to extract the information in
> the
> Object Browser (i.e. when I hit F2) into a file I can save?
>
> TIA
>
>
MZTools can document a project for you, but it's not going to grab anything thats not an actual code part of a project
like OB can...  I believe there is also code out there (google it) for a roll your own object browser, whcih you could
use to accomplish the task yourself...

heres one I pulled up...



http://www.jsware.net/jsware/vbcode.php3#tlbc

Type Library Reader / Object Browser

   The object browser in VB and in MS Word provides a view into type libraries - binary documentation of COM objects.
The file TLBINF32.DLL provides that functionality and is redistributable. TLBINF32.DLL wraps the functionality in
OLEAUT32.DLL that provides the ability to read type libraries. TLBINF32.DLL can be used by VB programmers who want to
build their own object browser or otherwise read type libraries. But it's actually probably easier to use OLEAUT32.DLL
directly than it is to use TLBINF32.DLL. (And it also avoids needing to ship a 150 KB file that's incompatible with the
VB5 version.) As is so often the case, writing the code is not nearly so difficult as is finding thorough, accurate
documentation.

   The code here includes a sample program and a single, compact class that reads typelibs and extracts the information
into orderly data structures. (This is essentially the same code used in the Typelib reader ActiveX DLL on the VBScript
samples page.) This code is designed for use in an object browser or for object interface research. In other words, it
extracts information and organizes it in accord with what's relevant for an object browser, as opposed to just reading
all typelib data and "dumping" it as a list of interfaces like Microsoft's OLEView.exe Type Library browser does.

Download tlbread.zip (36 KB)
http://www.jsware.net/jsware/zips/tlbread.zip

Back to Index
http://www.jsware.net/jsware/vbcode.php3#dex
Author
21 Oct 2005 6:17 PM
Nobody
Thanks for the info everyone.