For those interested in the subject, I have posted in my forum an example
of how to create a type library programatically in pure PB code, without
the use of .odl files and the MIDL compiler.
TYPEBLD demonstrates how to create an OLE Automation type library using
the ICreateTypeLib and ICreateTypeInfo interfaces.
It is based on an old C program written by Microsoft Product Support
Services, Windows Developer Support (c) Copyright Microsoft Corp. 1995.
http://www.forum.it-berater.org/index.php?topic=301.0
Thanks Jose - much appreciated. :)