Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Register COM - Application Specific

Posted on 2011-09-16
1
Medium Priority
?
285 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 2000 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

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.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

971 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