1. 加入#include .
2. 在project(工程)->setting(設(shè)置)->link(連接)下objiect/librarymodules(對(duì)象/庫(kù)模塊)中加入shlwapi.lib.
PathAddBackslash //路徑后添加反斜桿 CString.GetBuffer(_MAX_PATH)
PathAddExtension //添加擴(kuò)展名
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
愛華網(wǎng)


