Ejemplo n.º 1
0
        /// <summary>
        /// AddReferenceToTypeLibrary(rcw) -> None
        ///
        /// Makes the type lib desc available for importing. See also LoadTypeLibrary.
        /// </summary>
        public static void AddReferenceToTypeLibrary(CodeContext /*!*/ context, object rcw)
        {
            ComTypeLibInfo typeLibInfo;

            typeLibInfo = ComTypeLibDesc.CreateFromObject(rcw);
            PublishTypeLibDesc(context, typeLibInfo.TypeLibDesc);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// LoadTypeLibrary(rcw) -> type lib desc
 ///
 /// Gets an ITypeLib object from OLE Automation compatible RCW ,
 /// reads definitions of CoClass'es and Enum's from this library
 /// and creates an object that allows to instantiate coclasses
 /// and get actual values for the enums.
 /// </summary>
 public static ComTypeLibInfo LoadTypeLibrary(CodeContext /*!*/ context, object rcw)
 {
     return(ComTypeLibDesc.CreateFromObject(rcw));
 }