Patent ID: 7735059
Filing Date: 2010-06-08
Classification: G06F

Abstract:
1. A method of hosting a managed code control in an unmanaged host, the method being implemented on a computing device where execution of the managed code control is managed within a common language runtime environment on the computing device and implementation of the unmanaged host is performed on the computing device external to the common language runtime environment thereon, the method comprising: providing a wrapper control (“wrapper”) in a memory of the computing device that implements control interfaces and abstracts managed control of the managed code control from the unmanaged host, the wrapper control being managed external to the common language runtime environment on the computing device; and providing a container control in a memory of the computing device as an intermediary managed object that is a container for said managed code control, the container control being managed within the common language runtime environment on the computing device, the method comprising: determining that the managed code control has been placed on a document by way of the wrapper being provided in the unmanaged host; generating code that will result in the managed code control being loaded at runtime; creating the container control and the managed code control as correspondent entities of the placed wrapper; parenting the created managed code control to the container control so as to establish a relationship between the created managed code control and the container control within the common language runtime environment; locating the placed wrapper in the unmanaged host; and pushing the container control to the wrapper in the unmanaged host so as to establish a relationship between the container control and the wrapper and by extension between the created managed code control within the common language runtime environment and the wrapper external to the common language runtime environment, the method further comprising the unmanaged host employing the placed wrapper in the unmanaged host and external to the common language runtime environment to employ the managed code control within the common language runtime environment by way of the container control within the common language runtime environment.