shlwapi.h所包含的函数

本文介绍如何在C++项目中使用shlwapi库进行各种路径操作,包括添加、移除、查找路径等。首先需要包含头文件并链接shlwapi.lib。通过这些函数可以轻松实现路径规范化、检查文件是否存在等功能。

开发板推荐:天空星STM32F407VET6开发板

超高性价比 STM32主控 | 超高主频 | 一板兼容百芯 | 比赛神器 | 沉金彩色丝印

1. 加入#include <shlwapi.h>.

2. 在project(工程)->setting(设置)->link(连接)下objiect/library modules(对象/库模块)中加入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     

开发板推荐:天空星STM32F407VET6开发板

超高性价比 STM32主控 | 超高主频 | 一板兼容百芯 | 比赛神器 | 沉金彩色丝印

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值