473,385 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Is there a .NET equivalent to Component Categories

Hi,

We are re-writing (in .NET) an application that makes heavy use of COM
component categeories. The basic idea is to give the user a drop-down of
objects from a particular category that are installed on their machine. This
was done in COM by using COM's component category manager. Is there anything
similar in .NET?

Thanks,
Bill

Nov 22 '05 #1
5 1298
Hi Bill,

I'm not quite sure what you're trying to do. Are you trying to list all the
COM components installed on the machine from a particular category or are
you trying to list all the .net assemblies on the machine's GAC?

If the first one is true, you just need to interop with the component
category manager. You can get more information in
microsoft.public.dotnet.framework.interop newsgroup.

If the latter one is true, as far as I know, there isn't such components
available in .NET framework.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #2
Hi Kevin,

Thank you for your reply. I want to get a listing of all .NET components in
the GAC that support a specified interface. I do something similar in an
earlier COM-based application using component categories...every COM object
that implements the specified interface implements a corresponding category.
In that way, I can use the component manager to get a listing of all objects
that support the interface I'm interested in.

Bill

"Kevin Yu [MSFT]" wrote:
Hi Bill,

I'm not quite sure what you're trying to do. Are you trying to list all the
COM components installed on the machine from a particular category or are
you trying to list all the .net assemblies on the machine's GAC?

If the first one is true, you just need to interop with the component
category manager. You can get more information in
microsoft.public.dotnet.framework.interop newsgroup.

If the latter one is true, as far as I know, there isn't such components
available in .NET framework.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #3
Hi Bill,

As far as I know, there isn't a component in .NET which does the same as
Component Manager does.

There is a tool named gacutil.exe to install and remove assemblies in the
GAC. But it's a tool, not a component.

http://msdn.microsoft.com/library/de...us/cptools/htm
l/cpgrfglobalassemblycacheutilitygacutilexe.asp

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #4
Kevin,

We knowabout gacutil for adding/removing dlls to/from the GAC, however that
is an executable. In general, are there any componenets that you know of
that we could use that will at least enumerate the components installed in
the GAC? Then perhaps we could use reflection and custom attributes to
achieve the same effect? I have heard thate latter approach alluded to, but
no code samples. People have basically said to install all of your
componenets in a particular directory, then use reflection to find the object
you are interested in.

If you, or anybody eslse on this board have anything that might help, that
would be greatly appreciated!
Thanks,
Steve

"Kevin Yu [MSFT]" wrote:
Hi Bill,

As far as I know, there isn't a component in .NET which does the same as
Component Manager does.

There is a tool named gacutil.exe to install and remove assemblies in the
GAC. But it's a tool, not a component.

http://msdn.microsoft.com/library/de...us/cptools/htm
l/cpgrfglobalassemblycacheutilitygacutilexe.asp

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #5
Kevin,

We knowabout gacutil for adding/removing dlls to/from the GAC, however that
is an executable. In general, are there any componenets that you know of
that we could use that will at least enumerate the components installed in
the GAC? Then perhaps we could use reflection and custom attributes to
achieve the same effect? I have heard thate latter approach alluded to, but
no code samples. People have basically said to install all of your
componenets in a particular directory, then use reflection to find the object
you are interested in.

If you, or anybody eslse on this board have anything that might help, that
would be greatly appreciated!
Thanks,
Steve

"Kevin Yu [MSFT]" wrote:
Hi Bill,

As far as I know, there isn't a component in .NET which does the same as
Component Manager does.

There is a tool named gacutil.exe to install and remove assemblies in the
GAC. But it's a tool, not a component.

http://msdn.microsoft.com/library/de...us/cptools/htm
l/cpgrfglobalassemblycacheutilitygacutilexe.asp

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: John | last post by:
Is there an equivalent of COM on Linux that I can get through Python. My need is to have some sort of language independent component framework. I can think of CORBA but I have to have a server...
12
by: Chien Lau | last post by:
I had a situation occur today that's happened a number of times before and I'd like to get your take on it: Imagine... You're developing a WinForms app for a client that includes the use charts....
4
by: Bill Rust | last post by:
Hi, We are re-writing (in .NET) an application that makes heavy use of COM component categeories. The basic idea is to give the user a drop-down of objects from a particular category that are...
1
by: Brent Mondoux | last post by:
Hey everyone, I'm trying to find the best non-spaghetti code way to do the equivalent of a ColdFusion CFQUERY GROUP command so that I can display a FAQ with categories as follows: -- Example:...
3
by: John | last post by:
anyone?
7
by: Marina Levit [MVP] | last post by:
Does anyone knows if this exists? Basically, a way to tell a method to execute, but a certain amount of time after the current event chain is finished - not immediately. With setTimeout, even if it...
13
by: hornedw | last post by:
I have been working on a ecommerce website for myself. What I needed some assistance on was when i was trying to display the categories/subcategories for the different products. I decided to use...
1
by: Vicente García | last post by:
Hi all, I am making up an application in Visual Basic .NET but I have a problem. I have some rows (categories) with three fields, in addition I have other rows (the subcategories) with five or...
6
by: yootaeho | last post by:
Hi all, Does anyone know that there is PDF conversion component from MS word for ASP.NET? I know that there are a number of commecial PDF conversion programs but I just wonder if there are free...
11
by: gnuist006 | last post by:
Is there a Delphi equivalent in the C world or Scheme/LISP world ? Recently, Delphi is in resurgence. In Russia people are using like crazy. For example, Bolega has written a free image...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.