Solved

COM DLL from .Net

Posted on 2014-04-15
3
307 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 70

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

635 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