Some practical tips for VC (-)

zhaozj2021-02-11  194

Visual C 6.0 (5.0) development tools are very powerful, but for beginners, there are many details questions. The author collects the following practical tips, I hope to help beginners.

1: When using the VC development project, this will often encounter this:

That is, it is clear that only one file is changed, but all the entire project is re-connected once. Just connected, once, and prompt to recompile the connection once, very annoying. This is because there is a future file.

Solution:

Find the debug directory under the corresponding folder, all DELETEs in the future, and then Rebuild All. (Future documents are after its creation and modification time is later than the system time)

2: Sometimes, ClassView in Workspace displays confusing. It is as follows:

(1): The added member variable or function cannot be displayed;

(2): Even if the variable or function is displayed, do not jump to the correct position after double-click.

Solution:

Delete .ncb file, then 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 expect the project file to join a CPP original file and compile the connection, always prompts that the pre-translated head is not found.

Solution:

#include "stdafx.h"

5: How to join your definition class to the project?

There are many ways to introduce a simple:

Select Insert / New Class menu

pop-up dialogue box;

Select Class Type for generic;

Enter the class name.

Of course, you can also determine the base class of this class.

6: How to import multiple projects in the workspace (Workspace)?

After opening a project (* .dsp file), select another project file (* .dsp file) in the INSERT Project Into Workspace submenu under the "Project" menu, you can insert another item.

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 to organize in the ClassView view?

We can first click New Folder in the ClassView view, and then drag the class with similar properties to the corresponding folder, so that the entire view looks clear.

8: How to quickly delete a temporary file under the Debug folder under the project?

Select the corresponding item in the FileView view, right click Clean.

9: Open a source of project editing operations very slow, what should I do?

Do not open the project file (* .dsp file), open the single source file (* .h or * .cpp) to edit (* .h or * .cpp) to edit, it is much better.

10: If you want to copy the entire project to a floppy disk, can those files can be deleted?

In addition to the project folder, the DEBUG folder can be deleted, .ncb, .clw, .OPT and other files can also be deleted, which can be regenerated after these files Rebuilt ALL.

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

New Post(0)