MFC develops ActiveX controls in VS2008, where is the runtime's own container? _ Thick accumulate thin hair

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.