473,404 Members | 2,178 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,404 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 1299
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.