描述
返回包含指定路径的文件扩展名的字符串.
语法
FUNCTION GetExtesionName ( _ BYREF cwsPathSpec AS CWSTR _ ) AS CWSTR |
参数
cwsPathSpec |
CWSTR.路径. |
返回值
CWSTR.扩展名.
引用文件
CFileSys.inc
示例
#INCLUDE ONCE "Afx/CFileSys.inc"
DIM pFileSys AS CFileSys
DIM cwsName AS CWSTR = pFileSys.GetExtensionName("C:\MyFolder\Test.txt")