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, ScriptingContext | Component is CPPFirst.dll, page is first.asp |
Example 12-3, Accessing Response from ObjectContext | Component is CPPMtsFirst.dll, page is second.asp |
Examples 12-4, 12-5, 12-6, 12-7, and 12-8, Storing Response object in propery | Component is CPPMtsSecond.dll, test page is third.asp |
Example 12-9, 12-10, and 12-11, Using ObjectControl and just-in-time activation | Component is CPPMtsObjControl.dll, page is fourth.asp -- Register component in MTS for activation |
Example at bottom of page 314, Using ObjectContext to create another component | Component is MTSObjContext.dll, page is sixth.asp -- Register embed.dll component in MTS for activation |
Example 12-14, Application Object | Component is MTSAppliction.dll, page is seventh.asp -- Register component in MTS for activation |
Example 12-15, Embed object | Component is embed.dll -- Register component in MTS for activation |
Example 12-16, accessing Embed from Session StaticObjects | Component is MTSSession.dll -- Register component in MTS for activation, see global.asa file -- test page is eighth.asp |
Example 12-17, Request object Server Variables | Component is MTSRequest.dll -- Register component in MTS for activation - test pages are ninth.asp and testr.asp |
Example 12-18, Request object Query String | Component is MTSRequest.dll -- Register component in MTS for activation - test pages are tenth.asp and test.asp |
Example 12-19, Response object and cache expiration | Component is MTSResponse.dll -- Register component in MTS for activation - test page is eleventh.asp |
Example 12-20, Response object and Write Cookies Collection | Component is MTSResponse.dll -- Register component in MTS for activation - test page is twelfth.asp |
Example 12-21, Server object and encoding | Component is MTSServer.dll -- Register component in MTS for activation - test page is thirteen.asp |
Example 12-22, Server object and creating new object | Component is MTSResponse.dll -- Register component and "embed.dll" in MTS for activation - test page is fourteen.asp |