Solved

COM DLL from .Net

Posted on 2014-04-15
3
300 Views
Last Modified: 2014-04-16
I am about to write a .Net application (C#, VS2012, Framework 4.0) where I want to use a COM DLL.  I am familiar with Interop only in the sense of adding references to things like Excel.

In order to reference it in my project, does the COM DLL need to be registered on my development machine?  Currently I get an error when trying to reference it (could not be added, make sure it's a valid COM assembly, etc.)

When I deliver the finished application to a client site, does the COM DLL need to be registered on the client machine, or is that what Interop is for -- to avoid that?

Thank you.
0
Comment
Question by:g_johnson
3 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 300 total points
ID: 40002743
Have you tried registering the DLL?

...is that what Interop is for...?
"Interop" is for allowing your managed code to work with unmanaged code.
0
 
LVL 69

Assisted Solution

by:Éric Moreau
Éric Moreau earned 200 total points
ID: 40002870
>>When I deliver the finished application to a client site, does the COM DLL need to be registered on the client machine

Yes because a COM DLL can only be referenced through the registry.
0
 
LVL 4

Author Closing Comment

by:g_johnson
ID: 40005105
Thanks, guys
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now