If you are writing a managed code, you will want to use an existing COM component, but you can't call them directly. Instead, you must pack COM components in a built-in package, as a proxy between components and managed code. Although CLR provides a packaging class for this, sometimes you need to pack COM components with custom objects. To get an accurate control resource cleanup, pass security information, one of the underlying access capabilities required to access the CLR function, one is to write its own packaging classes with hosted C . This article will tell you how to achieve this.
Click here to read the full story