I like to code stuff in C++ and sometimes ASM and was wondering how I would go about creating a type library to be used in Visual Basic. I've seen a few of these on Planet-Source-Code and elsewhere but have no idea how they are created.

Can anyone shed some light on this?

Thanks.