导航:  Windows Procedures >

AfxPathBuildRoot

上一页返回章节概述下一页

描述

 

从给定的驱动器号创建根路径.

 

FreeBASIC 语法

 

FUNCTION AfxPathBuildRoot (BYVAL nDrive AS LONG) AS CWSTR

 

参数

 

nDrive

 

LONG型指示所需的驱动数可变.应该是0和25.之间

 

返回值

 

根路径.如果由于任何原因(例如,无效的驱动器号)调用失败,则返回一个空字符串.

 

引用文件

 

AfxPath.inc

 
Sample Code

 

DIM cws AS CWSTR = AfxPathBuildRoot(2) - output: C:\