Chapter 4 - Modifications/Corrections

In the source code for Example 4-5, change the public member for the example from:

int * tstValue

to:

int tstValue


Example 4-6 shows that the component is instantiated into the Application object collection in the first ASP script page, and this is accessed for the second ASP script page. This is incorrect: the component should be instantiated directly within both ASP pages:


Dim tst
Set tst = Server.CreateObject("CPPThreads.thrdTest.1")


In Example 4-8, the variable count2 should be initialized before being used in loop:

count2 = 0;


Microsoft has changed its Web site, and many of the links listed in the chapter have changed.

The URLs in the Further Reading section have changed. Instead of: