PC Review


Reply
Thread Tools Rate Thread

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

 
 
Vadim Rapp
Guest
Posts: n/a
 
      6th Aug 2008
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





 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use late binding to get at the FORMS library xp Microsoft Excel Programming 2 25th Mar 2009 02:01 PM
Late Binding/Object Library Probelms bony_tony Microsoft Excel Programming 1 27th Jul 2007 04:50 PM
Create Class Module using late binding =?Utf-8?B?TWFyaWFubyBCLg==?= Microsoft Excel Programming 3 14th Mar 2006 07:21 PM
Late binding to .XLA library?? Lee S Microsoft Excel Programming 6 4th Mar 2005 08:37 PM
Late binding equivalent for the .Net class librarys... Daniel Bass Microsoft C# .NET 5 10th Dec 2003 05:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:13 PM.