I have a com dll written in vb6. I need to write c# code that wil get me a list of all the classes within it.
My Objective is to get the classes and generate the classes in .net with all the properties and create a mapping class.
I just need to get a list of classes from the dll.
Summary: How can I get a list of all the classes in my com dll?
Using reflection to walk the Interop for your COM DLL will give you classes and interfaces that a vaguely analogous to COM CoClasses and interfaces.
If quick and easy is what you're after, add your COM DLL as a reference in Visual Studio and use the code below to walk through the Interop assembly looking for classes. If it's a VB6 COM DLL everything is going to be IDispatch anyway, but you could optionally filter on objects with a CoClass, Guid or InterfaceType attributes on the types identified below (you didn't specify whether you were after classes or CoClasses).
If you're trying to really do this properly, the articles Dennis linked to in his comment are better, as is p/Invoke'ing LoadTypeLib and walking ITypeLib (the latter option being non-trivial).