Chapter 5 -- COM Servers

Chapter 5

This chapter begins by explaining how to package your coclasses for distribution. One of the first issues you must address is whether to distribute your classes in an in-process DLL or an out-of-process EXE. You must weigh the pros and cons of each packaging technique. This chapter covers important issues relating to COM and the Registry and explains how to properly register servers on a development work-station and on a user's desktop.

Component versioning is critical in the production environment. To harvest COM's most powerful features, you must be able to revise your servers and replace them in the field without adversely affecting any client applications. This chapter shows you the options that Visual Basic gives you to accomplish this. For many readers, this will prove to be the most valuable topic in the book.

This chapter also delves into a variety of issues relating to server design, such as exposing classes and interfaces, using enumerators and friend methods, and modifying procedure attributes. The chapter concludes by explaining how Visual Basic maps its own internal error handling model onto COM exceptions. This leads to a description of the best techniques for raising errors between servers and clients.

Programming Distributed Applications With Com & Microsoft Visual Basic 6.0
Programming Distributed Applications with Com and Microsoft Visual Basic 6.0 (Programming/Visual Basic)
ISBN: 1572319615
EAN: 2147483647
Year: 1998
Pages: 72
Authors: Ted Pattison © 2008-2017.
If you may any questions please contact us: