Here we go :
- Copy your assembly (.dll) wherever you want, ex : c:\windows\system32
- Open Command Prompt and write regsvr32 “c:\windows\system32\myAssembly.dll” , in this tutorial my assembly file is BRI_v2.dll. If you do it correctly you gonna see notification like this :
- In your Visual Studio project, right click Reference then choose COM tab, you gonna found your COM assembly there like this : The rest is just simply click OK and use em in your code. You maybe also want to read this C# Reference (dll) Problematic – Interop Type Cannot be Embedded .
Twitter Subscribe : Follow @etayuy