Solved

Register COM - Application Specific

Posted on 2011-09-16
1
275 Views
Last Modified: 2012-05-12
I have a COM dll whioch was created in VB 6.0. Now we are using in .NET Windows application. I want to register this dll for this application only. No other application should not access this component.

How can I do this?
0
Comment
Question by:radcaesar
1 Comment
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
ID: 36549736
This type of thing is not possible in COM. Since a dll is conceived to be reused, and since COM was designed at a time where security was not such a concern, they did not provide any protection of the type you need into COM.

This feature became available only in Visual Studio 2008 (framework 3) and is called a Friend assembly. It works only with .NET dll however, because it requires the dll to have a strong name, something that is not available on COM libraries. You would have to convert your dll to .NET.

0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video discusses moving either the default database or any database to a new volume.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 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

11 Experts available now in Live!

Get 1:1 Help Now