[Repost] VC ++ IDE setting tips

xiaoxiao2021-03-06  37

VC IDE setup skills

Rick1126

C, C (2002-06-03 12:13:49)

1. Identify custom file suffix names

HKEY_CURRENT_USER / SOFTWARE / Microsoft / DevStudio / 6.0 / Text Editor / Tabs / Language Settings / C / C

Here shown:

Data Name: FileExtensions

Data Numerical: CPP; CXX; C; H; HXX; HPP; Inl; TLH; TLI; RC; RC2

VC IDE is to identify source file suffixes by this definition.

2. EXTERNAL file

C: / Program Files / Microsoft Visual Studio / Common / MSDEV98 / BIN has a sysincl.dat file, open with a text editor, its content is:

_DBDAO.H

_ENTRYID.H

...

Activecf.h

Activeds.h

Activex.mak

ActiveX.rcv

ActiveX.Ver

Activscp.h

Activscp.idl

...

Let's do a little shallow explanation:

During compilation, the compiler records all the headers of "#include", but they want to shake the following two headers:

The header file mentioned in the sysincl.dat file, such as: activeds.h;

Those headers in // {NO_DEPENDENCIES}}. For example, the beginning of a VC project is written in the beginning of the RESOURCE.H:

// {{NO_DEPENDENCIES}}.

After the recorder, the compiler is in the build process, check whether the header file of "#include" is changed; whether the source file should be recompiled.

In fact, these "#include" files may never change, and should tell the compiler to ignore the Dependency Check for these files, which saves many compile time.

This allows the "Minimal Rebuild" setting of the compiler to make full work.

Saved in the sysincl.dat file is that all Microsoft thinks to exclude headers outside Dependency Check. You can also add your own header to this list. You can also delete this file and there will be no trouble.

After adding your own header file, you must restart Visual Stdio IDE to take effect.

Note: When running the REBUILD command of the VC, does not start the Dependency Check.

There are some other standard files, Microsoft is not placed in this sysincl.dat, so it is displayed under the External Depenitencies folder in Workspace. Common files such as: Basetsd.h,

GuidDef.h, msxml.dll, etc.

The list of files for External DepENDENCIES is automatically generated, you cannot explicitly add. But you can drag the files under other folders, such as you can drag Basetsd.h under the Header Files folder. In this way, the compiler will defendency Check this file.

4. Display custom keywords

C: / Program Files / Microsoft Visual Studio / Common / MSDEV98 / BIN New UserType.dat file, open with text editor, add the following text:

UserType.dat - for defining your owywords to use in Visual C

Copyright (c) 1997 Microsoft Corporation. ALL Rights Reserved.; ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---------------------------

CMYCLASS

You need to restart the VC IDE to make the settings take effect.

This way, when you enter CMYCLASS in a file such as * .cpp, VC IDE will display it blue.

5. Macrocpp.dat

Open your VSTDIO work path:

C: / Program Files / Microsoft Visual Studio / Common / MSDEV98 / BIN

There is a macrocpp.dat file, open with a text editor, its content is:

__Rpc_far

Callback

Export

FAR

FAR

Fastcall __fastcall

Near

Pascal

SIZE_T_MAX uint_max

UNALIGNED

ATL_NO_VTABLE __DECLSPEC (NOVTABLE)

AFX_API_EXPORT __DECLSPEC (DLLEXPORT)

AFX_API_IMPORT __DECLSPEC (DLLIMPOR)

AFX_CDECL __CDECL

AFX_CLASS_EXPORT __DECLSPEC (DLLEXPORT)

AFX_CLASS_IMPORT __DECLSPEC (DLLIMPORT)

AFX_COMDAT __DECLSPEC (Selectany)

...

This file is originally used as: the pre-compiler is used to understand and process macros.

In the latest VisualStudio, the functionality of this file is integrated into the feaCP.dll.

So, now editing this file will not have any effect.

Therefore, the introduction of this file is not found on the MSDN.

Reprinted from 9cbs.net

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

New Post(0)