Humburger Icon
Let's Explore, Bibiliophile
close menu
Bookswagon-24x7 online bookstore
close menu
My Account
.NET and COM: The Complete Interoperability Guide

.NET and COM: The Complete Interoperability Guide

          
5
4
3
2
1

Out of Stock


Premium quality
Premium quality
Bookswagon upholds the quality by delivering untarnished books. Quality, services and satisfaction are everything for us!
Easy Return
Easy return
Not satisfied with this product! Keep it in original condition and packaging to avail easy return policy.
Certified product
Certified product
First impression is the last impression! Address the book’s certification page, ISBN, publisher’s name, copyright page and print quality.
Secure Checkout
Secure checkout
Security at its finest! Login, browse, purchase and pay, every step is safe and secured.
Money back guarantee
Money-back guarantee:
It’s all about customers! For any kind of bad experience with the product, get your actual amount back after returning the product.
On time delivery
On-time delivery
At your doorstep on time! Get this book delivered without any delay.
Notify me when this book is in stock
Add to Wishlist

About the Book

This comprehensive tutorial covers two technologies that enable software developers to leverage existing software while taking advantage of the .NET platform-COM Interoperability and Platform Invocation Services (PInvoke). These technologies enable .NET interaction with all external entities, including COM, COM+, DCOM, non-COM based livraries, and the operating system. Even if you're starting a new .NET software project from scratch, chances are that you'll need to leverage interoperability somewhere, whether it's using APIs exposed by the operating system or by third-part components. COM Interoperability and Platform Invocation Services are large topics, and this book's 1, 300+ pages clearly and thoroughly present a wealth of essential information for anyone moving to .NET. It's more than just a complete reference for both technologies, but a step-by-step guide through their nuances (including the hows, whys and whens) with an abundance of code examples. @HEADLINE=The book covers the following: @BULLET1=How to leverage existing software (COM-based or not) in new .NET applications. @BULLET2=How to plug new .NET Components into an existing COM architecture, taking advantage of .N ET's many features rather than continuing to program using COM. @BULLET3=How to design your software to work well in both .NET and COM-based surroundings. @BULLET4=How to call any unmanaged APIs (like Win32 functions) from a .NET language. @BULLET5=Interoperability with COM+, DCOM and ActiveX controls Everything from basic topics like late binding and event handling to advanced topics like custom marshaling and defining COM types in .NET source code are covered in depth. The focus of the book is COM Interoperability, and the heart of the discussion is broken down into four parts: using COM components in .NET applications, using .NET components in COM applications, designing great .NET components that may be used from COM, and designing great COM components to be used in .NET. Toward the end of the book, some large fun examples are developed, including a .NET arcade game! The book's indispensable appendices include a complete reference of the System.Runtime.InteropServices namespace, .NET exception and HRESULT mappings, SDK utilities reference, PInvoke definitions for Win32 APIs, and more. .NET source examples are provided in Visual C# .NET, Visual Basic.NET, and Visual C++.N ET with Managed Extensions. Although most examples are printed in one language, every one is available for download from this book's website in both C# and VB.NET, where applicable. COM Interoperability and PInvoke are language-independent at the core, but this book highlights features in all three languages that add value to interoperability in their own unique ways to guide your decision of which .NET language to use when interoperability is required. COM examples are provided in Visual C++ 6, IDL and Visual Basic 6, to help the readers whose only exposure to C OM is through Visual Basic. Throughout the book, special considerations for Visual Basic COM components are given. Various Microsoft COM-based technologies are discussed to demonstrate concepts in a realistic setting rather than only providing over-simplified examples. This book targets the final release of Version 1.0 of the Microsoft .NET Framework and its Software Development Kit (SDK), and Verson 7.0 of Microsoft Visual Studio.NET. It explains how to accomplish every task using nothing other than the free SDK, but also how to take advantage of the easy-to-use features inside Visual Studio.

Table of Contents:
(NOTE: Each chapter concludes with a Conclusion.) Introduction. I. BACKGROUND. 1. Introduction to the .NET Framework. What Is .NET? Features of the .NET Framework. Concepts Important for This Book. Languages and Tools. 2. Bridging the Two Worlds-Managed and Unmanaged Code. Managed Code Versus Unmanaged Code. How Unmanaged Code Interacts with Managed Code. Unmanaged Code Isn't Always the Answer. II. USING COMCOMPONENTS IN .NETAPPLICATIONS. 3. The Essentials for Using COM in Managed Code. Referencing a COM Component in Visual Studio .NET. Referencing a COM Component Using Only the .NET Framework SDK. Example: A Spoken Hello, World Using the Microsoft Speech API. The Type Library Importer. Using COM Objects in ASP.NET Pages. An Introduction to Interop Marshaling. Common Interactions with COM Objects. Using ActiveX Controls in .NET Applications. Deploying a .NET Application That Uses COM. Example: Using Microsoft Word to Check Spelling. 4. An In-Depth Look at Imported Assemblies. Converting the Library. Converting COM Data Types. Converting Methods and Properties. Converting Interfaces. Converting Classes. Converting Modules. Converting Structures. Converting Unions. Converting Enumerations. Converting Typedefs. Converting ActiveX Controls. 5. Responding to COM Events. Callbacks in .NET. Callbacks in COM. Handling COM Events in Managed Code. Handling ActiveX Control Events in Managed Code. 6. Advanced Topics for Using COM Components. Do-It-Yourself Marshaling. Threading and Apartments. Troubleshooting an InvalidCastException. Garbage Collection. Securing Unmanaged Calls. Using COM+ and DCOM Objects. Inheriting from COM Classes. Debugging into COM Components. Monitoring Performance. 7. Modifying Interop Assemblies. How to Change an Assembly's Contents. IL Assembler Syntax. Changing Data Types. Exposing Success HRESULTs. Arrays. Custom Attributes. Adding Methods to Modules. III. USING .NETCOMPONENTS IN COMAPPLICATIONS. 8. The Essentials for Using .NET Components from COM. A Sample .NET Component. Using a .NET Component in Visual Basic 6. Using a .NET Component in Unmanaged Visual C++. Using a .NET Component in Unmanaged JScript. Assembly Registration. The Type Library Exporter. .NET Class Interfaces. Interacting with a .NET Object. Deploying a COM Application That Uses .NET. Hosting Windows Forms Controls in Internet Explorer. 9. An In-Depth Look at Exported Type Libraries. Converting the Assembly. Converting .NET Data Types. Converting Members. Converting Interfaces. Converting Classes. Converting Value Types. Converting Enumerations. 10. Advanced Topics for Using .NET Components. Avoiding Registration. Hosting Windows Forms Controls in Any ActiveX Container. Working Around COM-Invisibility. Using Reflection to Invoke Static Members. Handling .NET Events. Unexpected Casing in Type Libraries. Advanced Shutdown Topics. IV. DESIGNING GREAT .NETCOMPONENTS FOR COMCLIENTS. 11. .NET Design Guidelines for Components Used by COM Clients. Naming Guidelines. Usage Guidelines. Reporting Errors. Exposing Enumerators to COM. Versioning. Deployment. Testing Your Component from COM. 12. Customizing COM's View of .NET Components. Customizing Data Types. Customizing Structure Layout. Exposing Class Interfaces. Using Visual Basic .NET's ComClassAttribute. Making APIs Invisible to COM. Customizing Registration. Providing Your Own GUIDs. Providing Your Own DISPIDs. Controlling Interface Derivation. Returning a Specific HRESULT. Disabling Type Library Marshaling of .NET Interfaces. Creating Multi-Cultured Methods. Using Optional Parameters in Any Language. Exposing .NET Objects As COM+ Objects. 13. Exposing .NETEvents to COM Clients. Exposing Events Without Using Extra CLR Support. Exposing Events Using Extra CLR Support. Example: Handling a .NET Windows Form's Events from COM. 14. Implementing COM Interfaces for Binary Compatibility. Getting Interface Definitions. Binary Compatibility with Visual Basic 6 Classes. Example: Implementing Office XP Smart Tag Interfaces. Interface Implementation Shortcuts in Visual Studio .NET. Common Problems When Implementing COM Interfaces. COM Interfaces with Default CCW Implementations. COM Interfaces Bridged to Different .NET Types. V. DESIGNING GREAT COMCOMPONENTS FOR .NETCLIENTS. 15. Creating and Deploying Useful Primary Interop Assemblies. Primary Interop Assembly or Brand New Assembly? Creating a Primary Interop Assembly. Deploying and Registering a Primary Interop Assembly. Writing IDL That Produces Good Type Libraries. What About ActiveX Controls? 16. COM Design Guidelines for Components Used by .NET Clients. General Guidelines. Using Array Parameters. Issues with VARIANT Parameters. Reporting Errors. Adjusting Certain COM-Specific Idioms. Managing Limited Resources. Threading and Apartment Guidelines. Providing Self-Describing Type Information. Naming Guidelines. Performance Considerations. 17. Implementing .NET Interfaces for Type Compatibility. Class Interfaces. Interface Inheritance. Considerations for Visual C++ Programmers. Considerations for Visual Basic 6 Programmers. VI. PLATFORM INVOCATION SERVICES (PINVOKE). 18. The Essentials of PInvoke. Using PInvoke in Visual Basic .NET. Using PInvoke in Other .NET Languages. Choosing the Right Parameter Types. Customizing Declare and DllImportAttribute. 19. Deeper Into PInvoke and Useful Examples. Callbacks. Passing Structures. Handling Variable-Length Structures and Signatures. Using C# Unsafe Code. Guarding Against Premature Garbage Collection. Choosing the DLL Location or Name Dynamically. Example: Responding Immediately to Console Input. Example: Clearing the Console Screen. Example: Using CoCreateInstanceEx to Activate Remote COM Objects. VII. ADVANCED TOPICS. 20. Custom Marshaling. Transforming Types Without Custom Marshaling. Custom Marshaling Architecture. Marshalers, Marshalers, Marshalers! Limitations. 21. Manually Defining COM Types in Source Code. Using SDK Tools for Support. Manually Defining COM Interfaces. Manually Defining Coclass Interfaces and Event Types. Manually Defining COM Structures. Manually Defining COM Enums. Manually Defining COM Classes. Avoiding the Balloon Effect. 22. Using APIs Instead of SDK Tools. Generating an Assembly from a Type Library. Generating a Type Library from an Assembly. Registering and Unregistering Assemblies. Installing and Uninstalling Serviced Components. Example: Using the APIs in an Interactive Application. VIII. COMPREHENSIVE EXAMPLES. 23. Writing a .NET Arcade Game Using DirectX. The User's Perspective. The Programmer's Perspective. DirectX Interaction. The Game Class. Sounds and Pictures. Layers. Screens. The Actors. Using the Game Class. E-mail Attack-The Advanced Version. 24. Writing .NET Visualizations For Windows Media Player. The COM Visualization API. Creating a .NET Visualization API. Using the .NET Visualization API. IX. APPENDICES. Appendix A. System.Runtime.InteropServices Reference. The System.Runtime.InteropServices Namespace. The System.Runtime.InteropServices.CustomMarshalers Namespace. The System.Runtime.InteropServices.Expando Namespace. Appendix B. SDK Tools Reference. TLBIMP.EXE. TLBEXP.EXE. REGASM.EXE. AXIMP.EXE. REGSVCS.EXE. Appendix C. HRESULT to .NET Exception Transformations. Appendix D. .NET Exception to HRESULT Transformations. Appendix E. PInvoke Definitions for Win32 Functions. GDI32.DLL. KERNEL32.DLL. OLE32.DLL. SHELL32.DLL. USER32.DLL. Appendix F. Glossary. Index.


Best Seller

| | See All

Product Details
  • ISBN-13: 9780672321702
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Sams Publishing
  • Depth: 57
  • Language: English
  • Spine Width: 35 mm
  • Weight: 1327 gr
  • ISBN-10: 067232170X
  • Publisher Date: 08 Feb 2002
  • Binding: Paperback
  • Height: 235 mm
  • No of Pages: 1608
  • Sub Title: The Complete Interoperability Guide
  • Width: 190 mm


Similar Products

How would you rate your experience shopping for books on Bookswagon?

Add Photo
Add Photo

Customer Reviews

REVIEWS           
Be The First to Review
.NET and COM: The Complete Interoperability Guide
Pearson Education (US) -
.NET and COM: The Complete Interoperability Guide
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

.NET and COM: The Complete Interoperability Guide

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book
    Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals

    | | See All


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!
    ASK VIDYA