O'Reilly

YASD's
Book Support
Site

Main Page

Chapter 12 - Readme

Chapter 12 Errata Pages

The examples in this chapter were created with Visual C++ 6.0.

You can register and use the compiled ASP components directly, or you can open the projects and re-build the objects before registering. You do not have to re-compile the components if you don't wish to; you can, instead, use regsvr32.exe to register the components and run the tests directly.

Adding support for MTS when the project is created adds in the MTS libraries. If you create a component without MTS support and later add an MTS component, you need to add the MTS libraries. Do this by accessing the settings option from the Project menu, selecting the Link tab, and then adding "mtx.lib" and "mtxguid.lib" into the Object/Library Modules text field.

Example to Chapter Mapping
Example 12-1, ScriptingContextComponent is CPPFirst.dll, page is first.asp
Example 12-3, Accessing Response from ObjectContextComponent is CPPMtsFirst.dll, page is second.asp
Examples 12-4, 12-5, 12-6, 12-7, and 12-8, Storing Response object in properyComponent is CPPMtsSecond.dll, test page is third.asp
Example 12-9, 12-10, and 12-11, Using ObjectControl and just-in-time activationComponent is CPPMtsObjControl.dll, page is fourth.asp -- Register component in MTS for activation
Example at bottom of page 314, Using ObjectContext to create another componentComponent is MTSObjContext.dll, page is sixth.asp -- Register embed.dll component in MTS for activation
Example 12-14, Application ObjectComponent is MTSAppliction.dll, page is seventh.asp -- Register component in MTS for activation
Example 12-15, Embed objectComponent is embed.dll -- Register component in MTS for activation
Example 12-16, accessing Embed from Session StaticObjectsComponent is MTSSession.dll -- Register component in MTS for activation, see global.asa file -- test page is eighth.asp
Example 12-17, Request object Server VariablesComponent is MTSRequest.dll -- Register component in MTS for activation - test pages are ninth.asp and testr.asp
Example 12-18, Request object Query StringComponent is MTSRequest.dll -- Register component in MTS for activation - test pages are tenth.asp and test.asp
Example 12-19, Response object and cache expirationComponent is MTSResponse.dll -- Register component in MTS for activation - test page is eleventh.asp
Example 12-20, Response object and Write Cookies CollectionComponent is MTSResponse.dll -- Register component in MTS for activation - test page is twelfth.asp
Example 12-21, Server object and encodingComponent is MTSServer.dll -- Register component in MTS for activation - test page is thirteen.asp
Example 12-22, Server object and creating new objectComponent is MTSResponse.dll -- Register component and "embed.dll" in MTS for activation - test page is fourteen.asp

For more information