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
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