Wonder Club world wonders pyramid logo
×

Effective COM: 50 Ways to Improve Your COM and MTS-based Applications Book

Effective COM: 50 Ways to Improve Your COM and MTS-based Applications
Effective COM: 50 Ways to Improve Your COM and MTS-based Applications, With COM fully established as Microsoft's key middle-tier technology for object-oriented, distributed applications development, the lessons learned from numerous successful deployments have yielded important techniques and best practices for COM's most ef, Effective COM: 50 Ways to Improve Your COM and MTS-based Applications has a rating of 4 stars
   2 Ratings
X
Effective COM: 50 Ways to Improve Your COM and MTS-based Applications, With COM fully established as Microsoft's key middle-tier technology for object-oriented, distributed applications development, the lessons learned from numerous successful deployments have yielded important techniques and best practices for COM's most ef, Effective COM: 50 Ways to Improve Your COM and MTS-based Applications
4 out of 5 stars based on 2 reviews
5
50 %
4
0 %
3
50 %
2
0 %
1
0 %
Digital Copy
PDF format
1 available   for $99.99
Original Magazine
Physical Format

Sold Out

  • Effective COM: 50 Ways to Improve Your COM and MTS-based Applications
  • Written by author Don Box
  • Published by Addison-Wesley, November 1998
  • With COM fully established as Microsoft's key middle-tier technology for object-oriented, distributed applications development, the lessons learned from numerous successful deployments have yielded important techniques and best practices for COM's most ef
  • With COM fully established as Microsoft's key middle-tier technology for object-oriented, distributed applications development, the lessons learned from numerous successful deployments have yielded important techniques and best practices for COM's
Buy Digital  USD$99.99

WonderClub View Cart Button

WonderClub Add to Inventory Button
WonderClub Add to Wishlist Button
WonderClub Add to Collection Button

Book Categories

Authors

Preface
Shifting from C++ to COM
1. Define your interfaces before you define your classes (and do it in IDL).
2. Design with distribution in mind.
3. Objects should not have their own user interface.
4. Beware the COM singleton.
5. Don't allow C++ exceptions to cross method boundaries.
6. Interfaces are syntax and loose semantics. Both are immutable.
7. Avoid E_NOTIMPL.
8. Prefer typed data to opaque data.
9. Avoid connection points.
10. Don't provide more than one implementation of the same interface on a single object.
11. Typeless languages lose the benefits of COM.
12. Dual interfaces are a hack. Don't require people to implement them. 13. Choose the right array type (avoid open and varying arrays).
14. Avoid passing IUnknown as a statically typed object reference (use iid_is).
15. Avoid [in,out] parameters that contain pointers.
16. Be conscious of cyclic references (and the problems they cause).
17. Avoid wire_marshal, transmit_as, call_as, and cpp_quote. Implementations
18. Code defensively.
19. Always initialize [out] parameters.
20. Don't use interface pointers that have not been AddRef'ed.
21. Use static_cast when bridging between the C++ type system and the COM type system.
22. Smart interface pointers add at least as much complexity as they remove.
23. Don't hand-optimize reference counting.
24. Implement enumerators using lazy evaluation.
25. Use flyweights where appropriate.
26. Avoid using tearoffs across apartment boundaries.
27. Be especially careful with BSTRs.
28. COM aggregation and COM containment are for identity tricks, not code reuse. Apartments
29. Don't access raw interface pointers across apartment boundaries.
30. When passing an interface pointer between one MTA thread and another, use AddRef.
31. User-interface threads and objects must run in single-threaded apartments (STAs).
32. Avoid creating threads from an in-process server.
33. Beware the Free-Threaded Marshaler (FTM).
34. Beware physical locks in the MTA.
35. STAs may need locks too.
36. Avoid extant marshals on in-process objects.
37. Use CoDisconnectObject to inform the stub when you go away prematurely. Security
38. CoInitializeSecurity is your friend. Learn it, love it, call it.
39. Avoid As-Activator activation.
40. Avoid impersonation.
41. Use fine-grained authentication.
42. Use fine-grained access control. Transactions
43. Keep transactions as short as possible.
44. Always use SafeRef when handing out pointers to your own object.
45. Don't share object references across activity boundaries.
46. Beware of exposing object references from the middle of a transaction hierarchy.
47. Beware of committing a transaction implicitly.
48. Use nontransactional objects where appropriate.
49. Move nontrivial initialization to IObjectControl::Activate.
50. Don't rely on JIT activation and ASAP deactivation to achieve scalability.
Epilogue
About the Authors
Index


Login

  |  

Complaints

  |  

Blog

  |  

Games

  |  

Digital Media

  |  

Souls

  |  

Obituary

  |  

Contact Us

  |  

FAQ

CAN'T FIND WHAT YOU'RE LOOKING FOR? CLICK HERE!!!

X
WonderClub Home

This item is in your Wish List

Effective COM: 50 Ways to Improve Your COM and MTS-based Applications, With COM fully established as Microsoft's key middle-tier technology for object-oriented, distributed applications development, the lessons learned from numerous successful deployments have yielded important techniques and best practices for COM's most ef, Effective COM: 50 Ways to Improve Your COM and MTS-based Applications

X
WonderClub Home

This item is in your Collection

Effective COM: 50 Ways to Improve Your COM and MTS-based Applications, With COM fully established as Microsoft's key middle-tier technology for object-oriented, distributed applications development, the lessons learned from numerous successful deployments have yielded important techniques and best practices for COM's most ef, Effective COM: 50 Ways to Improve Your COM and MTS-based Applications

Effective COM: 50 Ways to Improve Your COM and MTS-based Applications

X
WonderClub Home

This Item is in Your Inventory

Effective COM: 50 Ways to Improve Your COM and MTS-based Applications, With COM fully established as Microsoft's key middle-tier technology for object-oriented, distributed applications development, the lessons learned from numerous successful deployments have yielded important techniques and best practices for COM's most ef, Effective COM: 50 Ways to Improve Your COM and MTS-based Applications

Effective COM: 50 Ways to Improve Your COM and MTS-based Applications

WonderClub Home

You must be logged in to review the products

E-mail address:

Password: