The MFC ActiveX control is developed in VS2008, and is typically run using the VS-from-band ActiveX control Test container. This container is not found in the VS-installed file and needs to be manually acquired by itself. As described below:
(1) According to your VS installed path, find allvclanguagesamples.zip This compressed file in the samples under the name of 2052 folder, such as on my computer, where the path is: C:\Program files\ Microsoft Visual Studio 9.0\samples\2052\allvclanguagesamples.zip.
(2) When the compressed file is found, it is reduced to the current folder.
(3) C:\Program Files\Microsoft Visual Studio 9.0\samples\2052\allvclanguagesamples\c++\mfc\ole Find TstCon this folder as follows. Open this folder to find two resource solutions Tcprops and TstCon.
(4) Open these two solutions in VS2008:
(5) Set the Tcprops as a startup item by right-clicking on the solution Tcprops, selecting Set as Startup Project, and compiling it. Again, set the TstCon as a startup item and compile it. The compilation takes a few minutes, and you can do something else first.
(6) After compiling, you can see the TstCon32.exe file in the Debug folder under the TstCon folder. When you first run the MFC ActiveX control, enter the path where TstCon32.exe is located at the executable name.