How can I get a list of system COM references?

B

Bryan

This is for a utility that I am writing to update all of our Excel reports.
I currently have a form with a couple list boxes and browse buttons. One
browse button allows the user to add the XLS files they want to update and
inserts the paths into the corresponding list box. The second browse button
allows the user to select the module (BAS, CLS, FRM) files they wish to
insert or update in those Excel files and put them into the other list box.

I would like to have a CheckedListBox that fills with all COM references
available on the current system. This would be filled upon Form_Load.
Basically it's just like the form that's in Excel which allows you to add
references except the list of items is displayed on my form. I don't know of
a Reference Collection that contains all the COM references. If I did I
could use that to fill the CheckedListBox. Does anyone know how I can
accomplish this task?

Any help would be appreciated! Thanks for the help in advanced!

Bryan
 
B

Bryan

I have searched and still haven't found a way to get a list of all
References available Could someone give me some sample code that I might
use? Thanks!

Bryan
 
A

AlexS

You will need to loop through all relevant registry entries and try
LoadTypeLibEx on related files.
This is basic idea.

You can get sample code in SharpDevelop sources at www.icsharpcode.net.

HTH
Alex
 

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