Memo: Visual Studio + VC + + IDE uses a small sticker.

Source: Internet
Author: User

Not familiar with the IDE for Visual Studio 2013. Just use vs VC + + IDE programming, some things to use less, or after a long time without, afraid and forget. Now slowly know the point, record points, for later review.

1. The compiled EXE file does not require DLL library support.

Select items, right-click Properties. In the property settings, select Code generation under Configuration Properties---C + +. Set the runtime to: Multithreaded (/MT), and after compiling, run the exe file separately without the need for DLL library files to support it. Instead, select multithreaded DLLs (/MD). do not want MFC library support . Under Configure properties and general, set MFC use to use MFC in a static library. "

2. Programs that let VS2013 compile can run in Windows XP

Select items, right-click Properties. In the property settings, select Configuration Properties--general. Set the platform toolset to: Visual Studio 2013-windows XP (V120_XP), and the compiled program will run on Windows XP.

3. The "stdafx.h" file header is not required to compile the source file.

If you don't want your program to have a "stdafx.h". You can set the following:

Select items, right-click Properties. In the property settings, select Precompiled header under Configuration Properties---C + + +, set precompiled header from use (/yu) to do not use precompiled header.

This way, each time the program code is compiled, the source file is no longer detected as "stdafx.h".

4. Change the newly created project from "Win console" to "Win32" mode.

Sometimes you build a test project, or you want to write a DLL. Occasionally the wrong mode is selected. If you want to change the pattern, you don't have to rebuild new projects. You can set it as follows.

Select items, right-click Properties. In the property settings, select the Configuration property, system for the linker, set Subsystem to window (/subsystem:windows) or Console (/subsystem:console).

Memo: Visual Studio + VC + + IDE uses a small sticker.

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.