1. 加入#include .
2. 在project(工程)->setting(设置)->link(连接)下objiect/librarymodules(对象/库模块)中加入shlwapi.lib.
PathAddBackslash //路径后添加反斜杆 CString.GetBuffer(_MAX_PATH)
PathAddExtension //添加扩展名
PathAppend //附加路径
PathBuildRoot
PathCanonicalize
PathCombine
PathCompactPath
PathCompactPathEx
PathCommonPrefix
PathFileExists
PathFindExtension
PathFindFileName
PathFindNextComponent
PathFindOnPath
PathGetArgs
PathGetCharType
PathGetDriveNumber
PathIsDirectory
PathIsFileSpec
PathIsPrefix
PathIsRelative
PathIsRoot
PathIsSameRoot
PathIsUNC
PathIsUNCServer
PathIsUNCServerShare
PathIsContentType
PathIsHTMLFile
PathIsURL
PathMakePretty
PathMatchSpec
PathParseIconLocation
PathQuoteSpaces
PathRelativePathTo
PathRemoveArgs
PathRemoveBackslash
PathRemoveBlanks
PathRemoveExtension
PathRemoveFileSpec
PathRenameExtension
PathSearchAndQualify
PathSetDlgItemPath
PathSkipRoot
PathStripPath
PathStripToRoot
PathUnquoteSpaces
PathMakeSystemFolder
PathUnmakeSystemFolder
PathIsSystemFolder