Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Access References collection at runtime
Message
From
15/05/2000 10:25:47
 
 
To
13/05/2000 08:52:09
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00369199
Message ID:
00369570
Views:
18
>>How do I access the references collection at runtime?
>>
>>I have a couple of remote components on my references which I want to update to clients whenever I have a new version installed on the server. In order to remove the old components, I have to know the CLSID they are running under to find the uninstall string on the registry.
>>
>>Any ideas will be well received and appreciated.
>
>You can't put a reference at runtime.
>
>Your options are:
>1- Do late binding instead of early binding if your CLSID change
>2- Don't change your component interface and make sure your VB project is set to binary compatibility. When you recompile, VB will keep the same CLSID.

The CLSID of my two components doesn't change, but the interface does. So I don't need to put a reference, just access it and read the FullPath property.

For now I've worked around this by reading the folder name from the C:\Program Files\Remote Applications\ which is the CLSID of my installed remote component.

I would still be interested in knowing if the References collection can be read at runtime. Thanks for your help.
Previous
Reply
Map
View

Click here to load this message in the networking platform