Can I export a type from class library with late binding?

V

Vadim Rapp

Hello,

It looks like due to the way Access 2003 does early binding, it fails to
work with the same class library if the latter is upgraded, even though the
new version is properly registered. The solution is in late binding wherever
possible.

This is not a problem, but one library (written in VB6) that I use is
exporting a type. Is it possible to somehow get this type in the client code
without early binding?

Example:

in the class mylibrary.myclass:
public type MyType
Name as string
Ind as integer
end type

in the client code:
dim v as new mylibrary.myclass
v.name = "abc"
v.ind=3

Can I remove reference to mylibrary and do something equivalent to
GetObject - like

v = GetType("mylibrary.mytype")

?

thanks,
Vadim Rapp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top