I am trying to create a vb6 activeX dll in .Net. I used the upgrade wizard in
vs.net to load my vb6 project and it converted it to vb.net. Now I know that
I have to register the DLL from COM interop. I can check the box in vs.net on
the compiler tab to do this.
But how do I register my DLL for COM interop on another machine? 4 13688
Hi Philip,
I think you may try to use the Regasm tool, which will do the job just as
the IDE do.
Assembly Registration Tool (Regasm.exe) http://msdn.microsoft.com/library/de...us/cptools/htm
l/cpgrfAssemblyRe gistrationToolR egasmexe.asp
Best regards,
Peter Huang
Microsoft Online Community Support
=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
Hi Philip, I am trying to create a vb6 activeX dll in .Net.
Technically speaking, you can´t create VB6 ActiveX dlls in .NET. You can
create DLLs using VB.NET / C# that can behave as ActiveX components using
COM Interop.
I used the upgrade wizard in vs.net to load my vb6 project and it converted it to vb.net. Now I know that I have to register the DLL from COM interop. I can check the box in vs.net on the compiler tab to do this. But how do I register my DLL for COM interop on another machine?
You have several options:
- Manually you can use the command-line regasm.exe utility, likely with the
/codebase switch. Check the docs about this.
- Programatically you can use the
System.RunTime. InteropServices .RegistrationSe rvices class, using the
RegisterAssembl y function, for example.
- If your setup technology is aware of registration of .NET assemblies for
COM Interop, you should instruct the setup to do this.
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster: http://www.mztools.com
Can I instruct the Setup project template in vs.net 2005 to register it?
"Carlos J. Quintero [VB MVP]" wrote: Hi Philip,
I am trying to create a vb6 activeX dll in .Net.
Technically speaking, you can´t create VB6 ActiveX dlls in .NET. You can create DLLs using VB.NET / C# that can behave as ActiveX components using COM Interop.
I used the upgrade wizard in vs.net to load my vb6 project and it converted it to vb.net. Now I know that I have to register the DLL from COM interop. I can check the box in vs.net on the compiler tab to do this. But how do I register my DLL for COM interop on another machine?
You have several options:
- Manually you can use the command-line regasm.exe utility, likely with the /codebase switch. Check the docs about this.
- Programatically you can use the System.RunTime. InteropServices .RegistrationSe rvices class, using the RegisterAssembl y function, for example.
- If your setup technology is aware of registration of .NET assemblies for COM Interop, you should instruct the setup to do this.
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio You can code, design and document much faster: http://www.mztools.com
> Can I instruct the Setup project template in vs.net 2005 to register it?
Yes. In your setup project, just set "Register" property for your DLL
file to something containing COM. See http://msdn2.microsoft.com/en-US/library/z5s1e2wh.aspx for more details.
--
Peter Macej
Helixoft - http://www.vbdocman.com
VBdocman - Automatic generator of technical documentation for VB, VB
..NET and ASP .NET code This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: davidw |
last post by:
I asked this before, someone said I need use regasm, but it doesn;t seem to
work.
I am developing a class library which impelements a smtp sink. when I
compiled the project, the last statement is "Registering project output for
COM Interop", that registers the COM Interop on my develope machine. I am
trying to register the dll on other machine. Regsvr32 doesn't, and regasm
too. How could I register this type of dll?
Thanks!
|
by: Todd |
last post by:
Hello,
How do I register and non .net dll(with the OS) in a .net enviroment? I
have a third party dll I need to register(REGSVR32.EXE). What is the best
approach to this in a .Net enviroment. I appreciate any help.
--
Thanks,
Todd Manchester
Chronicle Technologies Inc.
|
by: Mullin Yu |
last post by:
i write a c# application with reference to a VB6 com dll by using Add
Reference -> COM
i found an Interop.xxxx.dll has been created at the build directory.
it works fine at my development machine, but when i deploy it to another
machine, it reports can't find the classid. do i still need to register the
VB6 com dll at the deployment machine. if yes, what's the use of the
Interop.xxxx.dll file then?
|
by: Danny Mansour |
last post by:
Hi there,
I have created class library project called DSResolver in an attempt to create a SQL server Custom Conflict Resolver dll. My project contains on class called DataSafeResolve which implements the SQLResolver.IVBCustomRsolver interface. The project also has a reference to the SQLResolver dll. I compiled the project into a dll and I tried to register it. I got the following error message:
"DSResolver.dll was loaded, but the...
|
by: Andy Bates |
last post by:
Hi -
I have a C# .NET assembly that exposes a COM interface (basically has an
interface and class with Guid attributes).
If I compile this under VS.NET (with the "Register for COM Interop"
selected). Then I can import the TLB into C++ and use the component as a
standard COM component, it creates and I can call it's methods.
If however, I take the DLL and use REGASM to register the component. I
| |
by: Luis Esteban Valencia |
last post by:
I have a WebApplication (ASP.NET) that uses Word 2000 (COM , via
Interop.Word.dll).
I want to deploy it to a computer, but Word is not installed there.
I tried to register the MSWORD.OLB (and his dependencies) with regsvr32
I keep getting the same error: invalid DLL
what should I do??
Then once , it will be registered should I re-reference my references?
|
by: Mihiri |
last post by:
Hi,
I have created a simple managed component in vb.Net with a public class
exposing a public function. I successfully registered it using 'Regasm.exe'
.. But
when I tired to access it in vb 6.0( using late binding) it gives an error .
I cannot view managed component in Ole View .
Both managed componet and vb 6.0 exe are in the same folder.
How Can I successfully register my component for COM?
Thanks
|
by: Jo |
last post by:
Hi all,
I have a dll written in C#. I need this dll being called by some un-managed
dll or app through COM.
My question is, do I have to set 'Register for COM Interop' set to true in
the project settings?
If you can point some articles about this that will be helpful also.
|
by: =?Utf-8?B?R2Vvcmdl?= |
last post by:
Hello everyone,
I am using Visual Studio 2005 to develop a C# COM Class Library project.
There is a setting in Build --Output, called *Register for COM Interop*.
What is the usage of this setting? In my situation, do I need to set this
option?
thanks in advance,
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |