C ++ static code analysis tool-prefast

Source: Internet
Author: User
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 =

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.