1. 頭文件宏定義: 采用_項目名稱頭字母+_文件名+_INC_
eg: 項目ImageView下的ImageInfo.h文件定義為_IV_IMAGEINFO_INC_
2. 文件包含:同名頭文件+自定義頭文件+第三方庫頭文件+編譯器頭文件(STL+CRT+SDK)
eg: 項目ImageView下的ImageInfo.cpp頭文件包含順序如下
#include "ImageInfo.h"
#include "myLib/config.hpp" //myLib
#include <boost/boost.hpp> //boost
#include <string> //stl
#include <process.h> //libc.lib
#include <windows.h> //sdk
#pragma comment(lib, "libc.lib")
<待續>