Solved

Register COM - Application Specific

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

867 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

21 Experts available now in Live!

Get 1:1 Help Now