Testing different versions of the same control is not easy, simply because only one of the versions can be registered at a time. This is one way in which you might check to see if a newer version of the Circle control correctly ignores persistent data stored by an earlier version of the control.
To insert the Circ control in Test Container
The Insert Control dialog box appears.
To test the version checking serialization code
The Circ Control Properties dialog box appears.
The Circ Control Properties dialog box appears.
The persistent data saved in step 3 is version 1.0. When the control is recreated in step 6, the control's version is 2.0. Because the persistent data and the control have different versions, the control's persistent properties are initialized to their default values. The stored values are ignored. In particular, the CircleShape property should be TRUE (the check box will be checked).
The Circ Control Properties dialog box appears.
The persistent data saved in step 11 is version 2.0. When the control is recreated in step 13, the control's version is 2.0. Because the persistent data and the control have the same version, the control's persistent properties are set to the stored values. In particular, the CircleShape property should be FALSE (the check box is cleared).
When you have finished, close Test Container.
If you want your Circle control to match the control found in the sample directories, be sure to restore the control version to 1.0 (change the value of _wVerMajor in CIRC.CPP to 1 and rebuild the control).
This concludes the Circle tutorial.