473,394 Members | 1,701 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,394 software developers and data experts.

Visual Studio 2005 C# Register for COM Interop option

Hello everyone,
I am using Visual Studio 2005 to develop a C# COM Class Library project.
There is a setting in Build --Output, called *Register for COM Interop*.
What is the usage of this setting? In my situation, do I need to set this
option?
thanks in advance,
George
Sep 2 '07 #1
8 7306
"George" <Ge****@discussions.microsoft.comwrote in message
news:3D**********************************@microsof t.com...
I am using Visual Studio 2005 to develop a C# COM Class Library project.
There is a setting in Build --Output, called *Register for COM Interop*.
What is the usage of this setting? In my situation, do I need to set this
option?
This setting will cause Visual Studio to automatically register your
assembly as a COM component in the Windows Registry when you compile the
project, so that it can be called by a COM consumer. If you don't use this
setting in Visual Studio, you can still generate a COM wrapper and register
your library manually by means of TLBEXP.EXE and REGASM.EXE.

Sep 2 '07 #2
Thanks Alberto,
Register you mean the same as regasm <assembly name>? I am wondering what is
the differences between using this Visual Studio 2005 option and do the
following work by myself,

1. regasm /codebase <assembly name>;
2. regasm /tlb <assembly name>.
regards,
George

"Alberto Poblacion" wrote:
"George" <Ge****@discussions.microsoft.comwrote in message
news:3D**********************************@microsof t.com...
I am using Visual Studio 2005 to develop a C# COM Class Library project.
There is a setting in Build --Output, called *Register for COM Interop*.
What is the usage of this setting? In my situation, do I need to set this
option?

This setting will cause Visual Studio to automatically register your
assembly as a COM component in the Windows Registry when you compile the
project, so that it can be called by a COM consumer. If you don't use this
setting in Visual Studio, you can still generate a COM wrapper and register
your library manually by means of TLBEXP.EXE and REGASM.EXE.

Sep 2 '07 #3
"George" <Ge****@discussions.microsoft.comwrote in message
news:9D**********************************@microsof t.com...
Register you mean the same as regasm <assembly name>? I am wondering what
is
the differences between using this Visual Studio 2005 option and do the
following work by myself,

1. regasm /codebase <assembly name>;
2. regasm /tlb <assembly name>.
When you use the visual studio option, it does internally something similar
to "regasm <project>.dll /codebase /tlb:<project>.tlb", so it's basically
equivalent to doing steps 1 and 2 manually.
Sep 2 '07 #4
Thanks Alberto,
I have made some study as well. I think COM registration operation will be
performed automatically each time after we made a build (if this option is
selected), right?
regards,
George

"Alberto Poblacion" wrote:
"George" <Ge****@discussions.microsoft.comwrote in message
news:9D**********************************@microsof t.com...
Register you mean the same as regasm <assembly name>? I am wondering what
is
the differences between using this Visual Studio 2005 option and do the
following work by myself,

1. regasm /codebase <assembly name>;
2. regasm /tlb <assembly name>.

When you use the visual studio option, it does internally something similar
to "regasm <project>.dll /codebase /tlb:<project>.tlb", so it's basically
equivalent to doing steps 1 and 2 manually.
Sep 2 '07 #5
"George" <Ge****@discussions.microsoft.comwrote in message
news:BB**********************************@microsof t.com...
I have made some study as well. I think COM registration operation will be
performed automatically each time after we made a build (if this option is
selected), right?
Yes, it is. In fact, if you look at the window that displays the
compilation messages, you will see "Registering assembly for COM Interop"
every time you compile.


Sep 2 '07 #6
Thanks Alberto,
I may be made a mistake. I have enbaled the option in Visual Studio 2005,
and at the same time, after making a build, I also manually use command
regasm /codebase <assembly nameto register the DLL. Will there be any
issues?
regards,
George

"Alberto Poblacion" wrote:
"George" <Ge****@discussions.microsoft.comwrote in message
news:BB**********************************@microsof t.com...
I have made some study as well. I think COM registration operation will be
performed automatically each time after we made a build (if this option is
selected), right?

Yes, it is. In fact, if you look at the window that displays the
compilation messages, you will see "Registering assembly for COM Interop"
every time you compile.


Sep 2 '07 #7
"George" <Ge****@discussions.microsoft.comwrote in message
news:10**********************************@microsof t.com...
I may be made a mistake. I have enbaled the option in Visual Studio 2005,
and at the same time, after making a build, I also manually use command
regasm /codebase <assembly nameto register the DLL. Will there be any
issues?
There shouldn't be any issues. It is legal to register for a second time
an assembly that has already been registered. This should merely overwrite
the previous registration.
Sep 2 '07 #8
Thanks Alberto,
I am wondering how to check what registration entries does Visual Studio
2005 automatically register for me?
regards,
George

"Alberto Poblacion" wrote:
"George" <Ge****@discussions.microsoft.comwrote in message
news:10**********************************@microsof t.com...
I may be made a mistake. I have enbaled the option in Visual Studio 2005,
and at the same time, after making a build, I also manually use command
regasm /codebase <assembly nameto register the DLL. Will there be any
issues?

There shouldn't be any issues. It is legal to register for a second time
an assembly that has already been registered. This should merely overwrite
the previous registration.
Sep 3 '07 #9

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

Similar topics

0
by: Hugh Esler | last post by:
I've downloaded the Office XP PIA's from the MS download site, (OXXPIA.EXE) and installed them using the register.bat file as instructed. They appear in the \winnt\assembly folder, and in the...
30
by: Cowboy \(Gregory A. Beamer\) | last post by:
There seems to be a lot of confusion on the versions of Visual Studio 2005. My latest blog entry covers the different versions: Main URL:...
21
by: Paul Tremblay | last post by:
Hi All, I am a veteran C/C++ programmer (Unix background) and I want to get to speed with Visual Studio .Net I have legacy C/C++ code that I want to use in my application. However, I'm not...
8
by: jdn | last post by:
I have a root application that has various sub-applications (subdirectories set up as applications within IIS). All of the sub-applications rely on the root application for profiles, membership,...
10
by: Steve | last post by:
I am trying to create a DLL in Visual Studio 2005-Visual Basic that contains custom functions. I believe I need to use COM interop to allow VBA code in Excel 2002 to access it. I've studied...
18
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft...
4
by: sqlguy | last post by:
Why do we have to contact MS for a problem that has been with this compiler from at least the beta of VS 20005. I am so sick and tired of the 30 - 40 clicks it takes to dismiss VS when there is a...
1
by: saschkuhn | last post by:
Hy, I created a ActiveX control box in Visual Studio 2005. Now I want to register my active toolbox on systems which has no Visual Studio 2005 on there. If I try to register with ... regsvr32...
2
by: Manikandan | last post by:
Hi, I have a program written in .Net Framework 1.1 using Visual studio enterprise edition 2003. I tried compiling the same program in visual c# express edition 2005. I'm getting following...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.