Some of the common problems of beginners

xiaoxiao2021-03-06  55

Visual C 6.0 (5.0) development tools are very powerful, but for beginners, there are many details questions. Collecting some of the following practical tips, I hope to help beginners. 1: When using the VC development project, this will often encounter this situation: that is, it is clear that only one file is changed, but all the projects are all re-connected. Just connected, once, and prompt to recompile the connection once, very annoying. This is because there is a future file. Workaround: Find out the debug directory under the corresponding folder, all DELETE, and then Rebuild All. (Future files are compared to system time) 2: Sometimes, the classview in Workspace shows confusing. It is as follows: (1): The added member variable or function cannot be displayed; (2): Even if the variable or function is displayed, double-click the correct location. Workaround: Delete .ncb file, rebuild all. 3: How to clean a class? 1: First remove the corresponding .h and .cpp file from the FileView in Workspace. 2. Turn off the project and remove the corresponding .h and .cpp file from the actual folder. 3. The disaster deletion. Clw file. Open the project, Rebuild All. 4: Beginners often have such doubts: Directly hope that the project file is added to a CPP original file and compile the connection. Otiend is not to find a pre-translated header solution: #include "stdafx.h" 5: How to join yourself to the project The defined class? Many ways to introduce a simple: Select the INSERT / New Class menu pop-up dialog; select Class Type for generic; enter the class name. Of course, you can also determine the base class 6: How to import multiple items in the workspace (Workspace)? After opening a project (* .dsp file), use the "Project" menu Insert Project Into Workspace Submenu Select another project file (* .dsp file) to insert another project. In the ClassView view, the right click can activate one of the items, and the workspace is inserted into multiple projects. It can be easily copied between different items, resources, etc. 7: How much is the class in the ClassView view? We can first click New Folder in the ClassView view, and drag the class with similar nature to the corresponding folder, so that the entire view looks clear. 8: How to quickly delete a project under the Debug folder? Select the corresponding item in the FileView view, right click Clean. 9: Open a large project editing operation of a source file is very slow, what should I do? Don't open the project file (* .dsp file), open the individual source file (* .h or * .cpp) to edit (* .h or * .cpp) to edit, Many. 10: If you want to copy the entire project to the floppy disk, can those files can be deleted? In addition to the project folder, the DEBUG folder can be deleted, .ncb, .clw, .opt can also be deleted, these files Rebuilt all can be re- generate. 11: How to quickly generate a new project that is exactly the existing project except for the project except? Use the File menu to generate the Custom AppWizard in a new project, select An EXISTING PROJECT, then select the project file name of the existing project (* .dsp ) Finish, after compiling, generates an appWizard that can generate the same that is the same but you can rename the name of the existing project. You can use it like MFC AppWizard.

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

New Post(0)