Register DLL for COM interop

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
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/default.asp?url=/library/en-us/cptools/htm
l/cpgrfAssemblyRegistrationToolRegasmexe.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.RegistrationServices class, using the
RegisterAssembly 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
 
Back
Top