COM Programming with Microsoft® .NET
Microsoft .NET is here, but COM and COM+ will be a valuable part of every Microsoft Windows® programmer's toolbox for years. This in-depth programming guide explains how and where COM and COM+ fit into the new .NET world, demonstrates the new technologies that are available in .NET, and shows...
Autor principal: | |
---|---|
Otros Autores: | |
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Sebastopol :
Microsoft Press
2009.
|
Edición: | 1st edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627957106719 |
Tabla de Contenidos:
- COM Programming with Microsoft® .NET; Introduction; Who Is the Audience for This Book?; Companion Content; What You Need; Equipment Used; Server Setup; Reader Aids; Microsoft Press Support; I. The .NET View of COM and COM+; How Does COM Work in the .NET World?; Differences in the COM and .NET Philosophies; Component Identification; Object Lifetimes; Determining Object Capabilities; Constructors and Destructors; Nondeterministic Finalization; Error Handling; Type Information; Visibility; Data Handling; Using COM Servers with .NET Clients; Interop Marshaling; Marshaling Structures
- The Marshal ClassEvent Handling; Using the IDE to Access Components; Locating UI Components; Simple COM Access Examples; Using an ActiveX Control; Summary; 2. COM+ and .NET; COM+ Problems and Improvements; Using the Component Services MMC Snap-In; Creating COM+ Applications and Installing Components; Adding Components to a COM+ Application; Adding Security to a COM+ Application; Exporting COM+ Applications; Using the .NET Framework Configuration MMC Console; Remoting Services Configuration; Defining a Runtime Security Policy; Summary; 3. Using COM Components in .NET Code
- Primary Interop AssembliesGenerating Runtime Callable Wrappers; Using the TlbImp.exe Tool; Using TlbImp.exe Options; Namespaces; Resolving References; The /transform:dispret Option; Using the TypeLibConverter Class; Assemblies and the GAC; Signing Assemblies; Installing Assemblies into the GAC; Delayed Signing; Generating and Installing Primary Interop Assemblies; How COM Entities Are Converted; Importing Libraries; Importing Data Types; Using IntPtr from Visual C#; Converting Arrays; Importing Classes; Importing Interfaces; Importing Properties; Importing Structures, Unions, and Enumerations
- UnionsEnumerations; Constants; Importing Typedefs; Importing Modules; How to Design COM Components for Use with .NET; Responding to COM Events; Handling Events from a COM Source; Using ActiveX Controls with .NET; Using the Command Line; Summary; 4. Using .NET Components in COM Applications; Object Lifetime; Standard COM Interfaces on .NET Components; Custom Interfaces on .NET Components; Problems with Using the Class Interface; Generating and Using COM Callable Wrappers; The InterfaceType Attribute; The Guid and ProgId Attributes; The ComVisible Attribute; The AutomationProxy Attribute
- The IDispatchImpl AttributeThe ComRegisterFunction and ComUnregisterFunction Attributes; Creating a Type Library; Using TypeLibConverter; Signing the Assembly; Registering the Component; Using .NET Components from COM Client Code; Installing the Component for COM Use; Looking at the Type Library; Using the Class in COM Code; Exporting Metadata to Type Libraries; Exporting Namespaces; Exporting Classes; Exporting Interfaces; Interfaces and Inheritance; Exporting Methods; Exporting Properties; Exporting Data Types; Exporting Value Types; Exporting Enumerations
- How to Design .NET Components for Use with COM