You are technically out of compliance with licensing. You should seek to purchase a legitimate copy of Visual Studio 6.0 from a vintage software reseller.
Here's an example of how to use a template class from the Vb6tmpl.tlb library: Vb6tmpl Tlb Download Full Version