Solved

Using .NET .tlb file in VB6 activeX dll

Posted on 2011-09-28
3
1,046 Views
Last Modified: 2012-05-12
I have a .NET dll that I want to use it in VB6 activeX dll project. I followed all the steps I found on the forums for .NET interop process. The VB6 dll successfully calls the .NET .tlb file on the dev machine but when I install the VB6 dll on the server I get "Automation Error: The system cannot find the file specified". Any ideas?
0
Comment
Question by:Bagur
3 Comments
 
LVL 29

Accepted Solution

by:
nffvrxqgrcfqvvc earned 500 total points
ID: 36717770
Yes. You need to give your .NET dll a strong key name. Properties >> Signing Tab >> check "Sign the assembly" box in the dropdown choose "New..." in the dialog box under "key file name:" give it a name and then un-check "protect my key file with a password" and click OK. Re-Build DLL then when you use regasm to register your .NET dll use the /codebase switch.


regasm.exe "AdministratorLib.dll" /tlb:AdministratorLib.tlb /codebase

Open in new window

0
 
LVL 100

Expert Comment

by:mlmcc
ID: 37144348
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

708 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

10 Experts available now in Live!

Get 1:1 Help Now