COM Interop: Principles and MechanismsInterop AssembliesPrimary Interop AssembliesGenerating Runtime Callable WrappersUsing Visual Studio .NETUsing the TlbImp.exe ToolSimple Use of TlbImp.exeUsing TlbImp.exe OptionsNamespacesResolving ReferencesThe /transform:dispret OptionUsing the TypeLibConverter ClassAssemblies and the GACStrong NamesSigning AssembliesInstalling Assemblies into the GACDelayed SigningGenerating and Installing Primary Interop AssembliesHow COM Entities Are ConvertedDealing with AttributesImporting LibrariesImporting Data TypesHandling void* ArgumentsUsing IntPtr from Visual C#Converting ArraysImporting ClassesImplementing Multiple InterfacesImporting InterfacesImporting MethodsImporting PropertiesImporting Structures, Unions, and EnumerationsStructuresUnionsEnumerationsConstantsImporting TypedefsImporting ModulesHow to Design COM Components for Use with .NETResponding to COM EventsConnection PointsHandling Events from a COM SourceEvents ExampleUsing ActiveX Controls with .NETAdding an ActiveX Control to the ToolboxUsing the Command LineSummary