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

C# project with 'Register for COM Interop' set to true

Jo
Hi all,

I have a dll written in C#. I need this dll being called by some un-managed
dll or app through COM.

My question is, do I have to set 'Register for COM Interop' set to true in
the project settings?

If you can point some articles about this that will be helpful also.

TIA,

Jo
May 3 '07 #1
1 5560
"Jo" <jo@microsoft.comwrote in message
news:O%****************@TK2MSFTNGP02.phx.gbl...
I have a dll written in C#. I need this dll being called by some
un-managed dll or app through COM.

My question is, do I have to set 'Register for COM Interop' set to true in
the project settings?
That's the easiest way to make your dll callable from COM clients.
If you don't want Visual Studio to do all the work for you, an
alternative way to make your dll accessible to COM is to use the TLBEXP.exe
program (Type Library Exporter) to create a .tlb from your .dll. This .tlb
can then be used to add a reference from COM consumers. You will also need
to register your dll in the Windows Registry using REGASM, because regsvr32
does not operate on .Net dlls. You can also use the /tlb option of regasm to
produce the same effect of running tlbexp.

May 3 '07 #2

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

Similar topics

4
by: Jody Gelowitz | last post by:
Is this possible? I have compiled an assembly in VS2005 and am trying to add a reference to that assembly from my VS2003 project. The error that I am getting is: A reference to '{path to vs2005...
8
by: Paul | last post by:
Hi all may I know how to use C# DLL inside my VC++ Project ? Thanks in advance.
3
by: hangten | last post by:
I have created a setup project for my application. Within this setup project I need to install another .exe file. When I add the .exe file to the setup program, I get a message "unable to find...
1
by: em | last post by:
Hi all, I'm getting some problems importing a DLL that I made in C# within VB6.0. The C# is quite easy, just for trying: namespace TestDll { public class Class1
9
by: Simon Jefferies | last post by:
Hello, How can I register my own .NET DLL through a setup project? In other words perform a regasm on a dll? Thanks In Advance Regards Simon Jefferies Tools Programmer, Headfirst...
3
by: Mark | last post by:
I'm getting the following error when I add Access as a reference to my project: A reference to 'Microsoft Access 10.0 Object Library' could not be added. Converting the type library to a .NET...
2
by: celerno | last post by:
Hi all, first some history: i'm developing an application who access foxpro databases using VfpOledb provider... but this cause a headache when i delete rows cause some tables call triggers... to...
8
by: Tim Zych | last post by:
Stumped here. When I access a ComClass enabled library in Excel on the development machine, it works fine. When I install the app on another machine, and try to access it, I get an error: ...
0
by: arfte | last post by:
Hi, guys If you open http://support.microsoft.com/kb/310674 link, you will see there are several ways that make using references in a Managed C++ application. I tried all of them, but i still...
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
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: 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
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
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,...

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.