* use System.Runtime.InteropServices;
* use class attributes:
[ClassInterface(ClassInterfaceType.AutoDual)]
[ComVisible(true)]
only public objects will be interop
* create an strong name with sn.exe and associate with the dll
in developer PC:
* set in Properties-Build "Register for COM interop"
in clients PC:
* use regasm.exe with the options /tlb /codebase
optioanlly include the assembly in GAC:
* use gacutil.exe
* use System.Runtime.InteropServices;
* use class attributes:
[ClassInterface(ClassInterfaceType.AutoDual)]
[ComVisible(true)]
only public objects will be interop
* create an strong name with sn.exe and associate with the dll
in developer PC:
* set in Properties-Build "Register for COM interop"
in clients PC:
* use regasm.exe with the options /tlb /codebase
optioanlly include the assembly in GAC:
* use gacutil.exe
perfect, thanks! I was not setting it to "Register for COM interop",
works now!
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.