Prefast is Code Analysis tool that helps you find errors or defects that the compiler cannot find. Prefast was first integrated into Visual Studio 2005 team suite by Microsoft, which is very convenient to use.
The prefast method is used in vc6:
Prefast is included in Microsoft's DDK
In vc6 Project
1. Install Windows ifs kit and DDK package
2. Execute Development kits-> Windows ifs kit and DDK-> Build Environment-> Windows 2000-> Windows 2000 checked Build Environment
3. Export Visual Studio project to A. Mak File
4. Remove/GZ in. Mak file or link fail
5. edit a run. BAT file (not necessary, only for set new include and Lib path)
Run. BAT file content
----------------
REM set include and Lib path
set include = C: \ Program Files \ Microsoft Visual Studio \ vc98 \ ATL \ include; C: \ Program Files \ Microsoft Visual Studio \ vc98 \ MFC \ include; C: \ Program Files \ Microsoft Visual Studio \ vc98 \ include
set Lib = C: \ Program Files \ Microsoft Visual Studio \ vc98 \ MFC \ Lib; C: \ Program Files \ Microsoft Visual Studio \ vc98 \ Lib
REM clean environment
nmake/F httpgetfile. mak clean
REM run prefast command
C: \ winddk \ 3790.1830 \ bin \ x86 \ prefast \ scripts \ prefast nmake/F httpgetfile. mak CFG = "httpgetfile-Win32 debug"
REM unset include and Lib path
set Lib =
set include =