473,395 Members | 1,437 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Deploy a .NET class library that is registered for COM interop

2
I have a VB6 DLL that has a reference to a .NET class library. I can deploy both using the deployment packages that come with Vb6 and VS 2003 respectively but I need a silent install with no windows popping up. VB6 not a problem as just use regsvr32 but although I use regasm on the .NET dll and get a "success" message I get error "Activex component cannot create object" when I try to call a function inside it. any ideas?
Nov 15 '07 #1
1 1375
Zinzan
2
Managed to answer this one myself so hope its useful for someone:
solution was to put the VB6 dll and the .NET dll into the same folder as the calling exe and register i.e. regsvr32 VB6DLL_name.dll and
regasm DOTNETDLL_name.dll /tlb:DOTNETDLL_name.tlb (Framework version 1.1)
Could have put the files in any folder if I'd used the /codebase option with regasm and could have made the assembly shared (instead of private) if I'd created the .NET dll with a strongname and added it to the GAC on the target.
Nov 15 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Patrick | last post by:
Following earlier discussions about invoking a .NET class library via ..NET-COM Interop (using regasm /tlb) at...
2
by: pieter.breed | last post by:
Hi All, The company I work for has traditionally used COM/ActiveX for the solutions that it provides. We are in the process of moving to .NET and a few applications have been written in VB.NET...
1
by: Jessard | last post by:
Hi all, How do I go about making a C# .NET class library available for use in a VBScript file using something like? Set mylib = CreateObject("MyLibrary.Utils") Surely it must be able to be...
2
by: Jessard | last post by:
Help! Hi, I'm having a bit (well a lot - it's getting annoying) of trouble using a C# class library within a VBScript on a computer other than the development machine. All the class is needed...
3
by: rua17 | last post by:
I add tow Com libraries to my project, I can see their content with intellisense, but when I instantiate a class contained in the library: PDDirectLib.PDDatabaseQuery pDbQuery = new...
5
by: jason | last post by:
i have a c# class library that is being compiled with the "Register for COM Interop" flag set to "True." it compiles just fine. however, when i go into the Component Services administrative tool...
0
by: jason | last post by:
i have classic ASP code that is calling a C# class library, which is wrapped for COM interop, and registered in the COM+ MMC. i have written 3 objects for the class library so far, and all three...
3
by: Hughsie | last post by:
Hi I have created an installation package for my app and I have installed the application onto another machine together with the framework and the correct MDAC version. The problem is when I...
0
by: =?Utf-8?B?UmljaA==?= | last post by:
Greetings, I deploy a project which references a custom Class library project (DLL) which is bundled together with the main project. This works fine. But if I update the class library (DLL)...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.