Debugging a Data-Bound ActiveX Control

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

If you are developing an ActiveX control that will be bound to a data source control, you can create your own container application and use that container to debug the ActiveX control.

For example, you can create a dialog-based MFC application and place your data-bound control and a data source control on the dialog box. You can use this MFC application for run-time testing and as the container executable for debugging your data-bound ActiveX control.

Using the Test Container

If you want a container that you can easily modify to support various interfaces on either the control or the container, use the ActiveX Test Container as the executable for the debug session. In the ActiveX Test Container, click Options from the Container menu to enable various interfaces. For more information, see Testing Properties and Events with Test Container.

If you need to step into the container's code while you are debugging, use the debug version of your container or use the debug version of the ActiveX Test Container. For more information, see TSTCON Sample: ActiveX Control Test Container.

See also