VC Studio Skills

zhaozj2021-02-12  155

VC Studio Skills Daquan 2.0 Version This is my online East to catch a west to grab a feat, it looks really tired, plus some self-satisfied, so today I will share it out! Share it! Huang Sen Tang (VCMFC) .1. Does whether parentheses in the test program match the cursor to move the cursor to the braces that need to be detected (such as parentheses {}, square bracket [], parentheses () and angle <>, type shortcuts " Ctrl ] ". If the parentheses match the correct, the cursor jumps to the matching parentheses, otherwise the cursor does not move, and the chassis speaker will also send a warning. 2. View a macro definition of a macro (or variable, function) to move the cursor to a macro you want to know, just like the most common declare_map_message, press F12 (or right Menu Go to Defition of ...), If Browse file is not created, a prompt dialog appears, determine, and then jump to the place where you define those things. Quite gratifying, it can also see the system macro defined by Microsoft, very good.3. Format a mess-of-band source code to select the source code, press ATL F8.4. Find member variables or functions in editing You cannot display the project extension as a .ncb file, reopen the project. 5. How to organize a large number of classes in the ClassView view, right-click New Folder, and drag the class with similar properties to the corresponding folder, so that the entire view looks clear. 6. Position Pretreatment Specifies to locate the cursor in the source file to the symmetrical #IF, #ENDIF, use Ctrl K.7. How to add the system lib to the current project in Project | Settings | Link | Object / Library Modules: Enter the lib name, different The LIB has a space clearance. 8. How to add the header file (.h) to the current project. #Include , tell the compiled VC system directory to find; use #include "filename.h ", Telling the compilation in the current directory. 9. How to use the compilation debug in the deskbench's Debugger in Workbench in the debugger status to handle system messages such as Classziard if you want to process WM_NCHITTEST messages in ClassWizard, Please change the Message Filter to Window in the ClassWizard in ClassWizard .11. How to clean a class first from the FileView in Workspace to remove the corresponding .h and .cpp file, turn off the project, from actual Remove the corresponding .h and .cpp files and .clw files in the folder. 12. Quickly switch two files in Studio Sometimes we need to quickly switch in the two files recently used, change Ctrl F6. This is useful when two files are not present. 13. Results after obtaining the source program: In Studio, you can do it in -> Project-> settings-> C / C -> Project Options, in the last plus / P / EP, these two compilation switches can be done Go to "only pretreatment". After compiling, you can discover the text files for "file name .i" in the source program directory. This is the result of pre-treatment. (Note: Distinguish the size, please use the large-scale / P) 15. View the return value after WinAPI call in Debug mode: very simple, and practical: Add @ HR, Err in Watch.

There is a detailed, please refer to the 9CBS document center. 14. Generate assembly code for specified source program file: Open project settings from Project-> Setting from the IDE menu, do it as follows: 1. First select the specified file on the left, you can choose. 2. In the C property page on the right, select List files in Category, then select Assembly and source code in the list files Type below, and finally entered in a C / C source file in the list file name. The corresponding assembly code of the resulting assembly code. 3. Compile the entire project. 15. Hand-compiled pure resources into a DLL: rc.exe / v Data.rccvtres.exe / machine: ix86 data.reslink / subsystem: windows / dll / noentry data.res; compiled DLL files This method created DLL is the smallest , It is smaller than you use Win 32 Dynamic Libray. Read the documentation center of "fully tap the potential of your VC IDE", author: zhengyun_ustc, which is a series of good articles. Attached: VC project file instructions.dsp project parameter configuration file, this file is too important, focus protection objects. .. dsw workspace file, importance is general, because it is not me, it is easy to recover. The following files are discarded in the project, and some files are deleted, the VC will automatically generate. .clwclasswizard information file, actually the format of the INI file, interested in studying. Sometimes ClassWizard has problems, manually modifying the CLW file can be resolved. If this file does not exist, you will draw a reminder every time you use ClassWizard. ..ncb No Compile Browse file (No Compile Browser). This file can be deleted when the function is automatically completed. BUILD will be automatically generated. .opt engineering regarding the parameter file of the development environment. Such as information such as tool bar position; (can be discarded) .aps (appstudio file), resource auxiliary file, binary format, generally do not need to take him ..plg is compiled information file, compiled error and warning information file (actually An HTML file), the general use is not large. There is an option in Tools-> Options to control the generation of this file ..hpj (Help Project) is an engineering that generates the help file, with MicrosFot Help Compiler can handle ..mdp (Microsoft DevStudio Project) is an old version of the project file. If you want to open this file, you will prompt you to convert to a new DSP format .. BSC is used to browse project information, if you use the Source Brower, you must have this file. If If you don't have this feature, you can remove the Generate Browse Info file in Project Options. You can speed up the compilation speed .. Map is the image information record file of the execution file unless it is very familiar with the underlying layer, this file is generally used ..pch (pre- Compiled file is a pre-compiled file that can accelerate compilation speed, but the file is very large ..pdb (program database) Record some of the data and debug information related to the program, may be useful when debugging ..exp only when compiling the DLL I will generate and record some of the information in the DLL file. It is generally not used.

转载请注明原文地址:https://www.9cbs.com/read-7222.html

New Post(0)