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.RegistrationService s 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