Home All Groups Group Topic Archive Search About

get progid from typelib?

Author
3 Jun 2005 6:50 PM
Craig Buchanan
i would like to get the full progid (project.class) for a late-bound object.
can the typelib do this?  i know i can call TypeName(Object) to get the
class, but i need the project name as well.

thanks,

craig buchanan

Author
3 Jun 2005 7:24 PM
Jeff Johnson [MVP: VB]
"Craig Buchanan" <msnews.microsoft.com> wrote in message
news:%23lH%23c0GaFHA.2884@tk2msftngp13.phx.gbl...

>i would like to get the full progid (project.class) for a late-bound
>object.
> can the typelib do this?  i know i can call TypeName(Object) to get the
> class, but i need the project name as well.

If you set a reference to TLBINF32.DLL perhaps you could use
ClassInfoFromObject().