Solved

Register COM - Application Specific

Posted on 2011-09-16
1
279 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
[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
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

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

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

751 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