& Lt; VS & gt; command line window displayed by the MFC program, vsmfc

Source: Internet
Author: User

<VS> the command line window is displayed in the MFC program.
When compiling the MFC program, I want to print the debugging information. After using cout, I found that the program did not automatically pop up the command line window as I imagined, and there was no place to view the output information. Baidu knows to manually call up the command line window to view the output information. Baidu introduces two methods. One is to create a command line window object in a program by adding code. Here is a simple method. Right-click solution to open the properties page. Choose "build event"> "post-build event"> "command line", and enter:

  1. Editbin/SUBSYSTEM: CONSOLE $ (OUTDIR) \ $ (TargetFileName)
For example: Clear the project and re-compileThe command line window is automatically opened after running. You can see the output of printf () and cout in the program. Note that Space and slash direction. Do not enter DescriptionThat column.



Related Article

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.