tlb2xml
cheztabor
Last Updated September 15, 2001

www.cheztabor.com | tltabor@nyc.rr.com
Install | Use | Source | Download | Changes | License | Contact

This is a console tool to dump type libraries to XML.

The tool should work with .tlb, olb., etc., libraries; as well as libraries bound as resources to dll's, exe's, etc.

Install

Unzip tlb2xml.zip to a directory in your search path.

No COM server registration is required.

Use

tlb2xml /i <value> [/o <value>] [/p] [/?|h|help] [/v|version] [@argfile]
/i <value> Input File Name. This argument is required. The value specifies a type library (.tlb, .olb., etc), or a module with a type library resource (.dll, .exe., etc).
/o <value> Output File Name. This argument is optional. If you don't specify this argument, the output file name will be the input file name with ".xml" appended.
/p Pretty Print. This option requires msxml3.dll. Alternatively, you can view the output in Internet Explorer, which will format the XML with its default stylesheet.
/? Show usage.
/v Show version.
@argfile Read arguments from a file.

Note that the XML output files can be quite large.

Also note that dumping and pretty-printing very large type libraries requires lots of memory and takes a very long time.

Source

tlb2xmlSource.zip is a Microsoft Visuall C++ 6.0 project built with ATL 3.0 and the current Platform SDK.

I started the project with the Gen<X> Win32 Console Application+ Wizard.

The command line is parsed by Chris Sells's Command Line Parser, implemented by the Gen<X> CommandLIneParser Wizard.

msxml3.tlh was created with Sofus Mortensen's ximport, another Gen<X> tool.

Download

tlb2xml.zip (65k)

tlb2xmlSource.zip (38k)

Changes

September 15, 2001

License

Copyright© 2001 Tim Tabor. All rights reserved. No warrantees extended.

Contact

Please report bugs and feature requests to me.

Enjoy.

Tim Tabor