VC Studio Use skills Daquan

Source: Internet
Author: User
Tags modify resource

1. The parentheses in the test program match

Move the cursor to the brackets (such as braces {}, square brackets [], parentheses (), and angle brackets <>) that you want to detect, and type the shortcut key "Ctrl +]". If the parentheses match correctly, the cursor jumps to the matching brackets, or the cursor does not move, and the chassis speaker emits a warning.

2. View a macro definition of a macro (or variable, function)

Move the cursor to a macro you want to know, like the most common declare_map_message click on the F12 (or the go to defition of ...) in the right-click menu, and if no browse files are established, a prompt dialog box appears, determining that Then you jump to the place where you define those things.

3. Format a messy source code

Select the source code, press Atl+f8.

4. Found that member variables or functions cannot be displayed in edit state

Remove the project extension to the. ncb file and reopen the project.

5. How to organize a large number of classes in the ClassView view

You can right-click a new folder in the ClassView view and drag classes with similar properties to the corresponding folder to make the entire view appear clear

.

6. Positioning preprocessing designation

Locate the cursor in the source file to the symmetric #if, #endif, and use Ctrl+k.

7. How to add Lib to current project in system

In Project | Settings | Link | Object/library Modules: Enter Lib name, different Lib open with empty.

8. How to add a header file (. h) from the system to the current project.

#include <filename.h>, told to compile to the VC system directory to find; use #include "FileName.h" to tell the compiler to find it in the current directory.

9. How to use assembly debugging in Studio

Press Ctrl+f7 in the debugger state of the workbench.

10. How to deal with system messages that Classziard cannot find

If you want to handle system messages such as Wm_nchittest in ClassWizard, change the Message Filter to window in the ClassWizard class info page.

11. How to clean Delete a class

Remove the corresponding. h and. cpp files from the FileView in workspace, and then close the project and delete the corresponding. h and. cpp files and. clw files from the actual folder.

12. If you want the console application to support MFC class libraries

You can introduce the MFC library in a console application, but the console application defaults to Single-threaded, MFC is multithreaded, to resolve the conflict, in the Project setting->c/c++ option, select Code generation, in use Select the debug multithread in the Run-time library drop-down box.

13. How to make an. exe file with executable code only

In the NT under the VC open file to the resources for opening *.exe files, directly modify the resource file, and then save.

Attached: VC Project Document Description

. opt Project parameters file for the development environment. such as the position of the tool bar and other information;
. APS (Appstudio file), resource assistance file, binary format, generally do not have to worry about him.
. CLW ClassWizard information file, is actually the format of the INI file, there is interest to study. Sometimes ClassWizard problems, manual modification CLW file can be solved. If this file does not exist, each time you use the ClassWizard to draw a reminder if you are rebuilding.
. DSP (Developerstudio Project): Project files, text formats, but do not modify them manually if unfamiliar. DSW (Developerstudio Workspace) is a workspace file, with other features similar to the DSP.
. PLG is the compilation of information files, compile-time error and warning information file (is actually an HTML file), generally not useful. There is an option in tools->options to control the generation of this file.
. hpj (Help project) is the project that generates the assistance file, which can be handled with microsfot assist compiler.
. MDP (Microsoft DevStudio Project) is an older version of the project file that prompts you to change to the new DSP format if you want to open the file.
. BSC is used to browse project information, if you use source brower, you must have this file. If you don't use this feature, you can get rid of generate Browse Info file in Project options to speed up compilation.
. map is the image information recording file of the execution file, which is not generally needed unless you are familiar with the underlying system.
. pch (pre-compiled files) is a precompiled file that speeds up compilation, but the file is very large.
. pdb The program database records some of the data and debugging information related to programs that may be useful when debugging.
. exp It is generated only when the DLL is compiled, and some information in the DLL file is logged. It's no use in general.
. NCB No compiled browse file (no compile browser). This file can be deleted when there is a problem with the auto completion feature. Build is generated automatically.

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.