Solved

COM DLL from .Net

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

Accepted Solution

by:
käµfm³d   👽 earned 300 total points
Comment Utility
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
Comment Utility
>>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
Comment Utility
Thanks, guys
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Change to event 1 72
Async and await with MVC and Web Api 3 29
asp.net bundle 8 33
Exception in Log4Net 1 17
Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

772 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

15 Experts available now in Live!

Get 1:1 Help Now