views:

16

answers:

1

I am working my way through the walk-through and I got as far as trying to load the control into the VB 6 toolbox.

I can load the DLL as a reference, but not as an ActiveX Component. When I try I get the message "InteropForms: The file [...] was not registerable as an ActiveX Component.".

I can create the control at runtime as a normal COM object.

Jonathan

EDIT:

If I try RegSvr32 I get this message:

[...] was loaded, but the DllRegisterServer entry point was not found. This file can not be registered.

EDIT 2:

If i register it with RegAsm, it appears in the component's list. However I get a error loading the DLL if I check it.

A: 

Not a full answer, but everything works if I run VB 6 and VS 2010 on the same machine. There must be something in the compile or post-compile step that I'm missing.

EDIT:

Ok, so what you need to do is run regAsm with the /codebase and /tlb options.

EDIT 2:

If you make any changes to the .NET dll, make sure you reregister it.

Jonathan Allen