|
|
In this chapter, youve seen some of the changes that have been made to the ATL library for version 7.0. A number of new utility classes have been added
ATL Server is a completely new library that is designed for writing server- side code. Based on the same model of templated classes that ATL has used so successfully, ATL Server provides a complete set of classes that cover every aspect of server-side development, including HTTP request handling, handling sessions and cookies, performance monitoring, and security. ATL Server Web applications provide a way to write high-performance C++ server applications that work in a similar manner to ASP.NET.
The
|
|
|
|
|
|
|
|
By now, you know how to create COM component application types. This chapter begins your journey into COM+ application development. Well experiment with several techniques for developing COM+ applications. The journey is worth the effort, because youll find that some techniques work better than others do.
After a brief explanation of the importance of GUIDs, the chapter explains how to create a component using the three techniques described in Chapter 5. After you create the component, youll learn two ways to register it on the server. Exporting the server application as a proxy comes
In Chapter 5, we discussed three techniques for creating managed
Using .NET components that lack the
[Guid]
attribute with COM+ could create a mess you never dreamed possible in the registry. A
Globally Unique Identifier (GUID)
provides a method for unmanaged applications to identify your component, as discussed in Chapters 3 and 4. The GUID must
However, the importance of using the
[Guid]
attribute doesnt end with simple identification. Another reason to use the
[Guid]
attribute is to keep your development machine reasonably clean. Every time you register a component, the registration application makes entries in the registry. If you dont assign a GUID to the component, the common language runtime will automatically select a new GUID for you each time. The CLR
Theoretically, unregistering the component
COM+ also requires the
[Guid]
attribute for another reason. Imagine that youre using servers in a cluster and that each server has a copy of your component installed on it. If the component doesnt use the
[Guid]
attribute, each server could have a registry entry for the component under a different GUID, which effectively means that each server has a unique version of your component. This little problem makes it
|
|