Solved

COM DLL from .Net

Posted on 2014-04-15
3
305 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Suggested Solutions

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

752 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