Home | Overview | How Do I | Tutorial | Sample
The Test Container application, shipped with Visual C++, is an ActiveX control container for testing and debugging ActiveX controls. Test Container allows the control developer to test the control’s functionality by changing its properties, invoking its methods, and firing its events. Test Container can display logs of data-binding notifications and also provides facilities for testing an ActiveX control’s persistence functionality: you can save properties to a stream or to substorage, reload them, and examine the stored stream data. This section describes how to use the basic features of Test Container. For additional information, select the Help menu while running Test Container.
To test your ActiveX control
Note If your control is not listed in the Insert Control dialog box, make sure you have registered it with the Register Controls command from the File menu of Test Container.
At this point you can test your control’s properties or events.
To test your ActiveX control with the debugger
The Project Settings dialog box appears.
Choose OK.
After you complete this procedure, Test Container starts automatically when you begin debugging your control (by selecting Go from the Debug submenu of Build or pressing F5). If a message box appears stating that no debug information is available for the Test Container, ignore the message and choose OK. You can now step through your code, set breakpoints, and use other debugging features.
To test properties
The property now contains the new value.
To test events
You can specify the destination of event information.
See Also ActiveX controls