主题:如何创建一个文件夹?
kaersas
[专家分:0] 发布于 2005-01-21 17:01:00
如题
回复列表 (共3个回复)
沙发
vagrant99 [专家分:220] 发布于 2005-01-21 17:51:00
CreateDir()这个函数
用法:
CreatDir(AnsiString dir);
dir:你要建立的文件目录名,是Ansi字符串哦
有返回值的:如果操作成功,返回真,否则返回假
板凳
jily [专家分:2460] 发布于 2005-03-18 12:45:00
这个是api函数马???怎么用不了呢
3 楼
IASM [专家分:260] 发布于 2005-03-18 14:33:00
BOOL CreateDirectory(
LPCTSTR lpPathName, // pointer to directory path string
LPSECURITY_ATTRIBUTES lpSecurityAttributes // pointer to security descriptor
);
If the function succeeds, the return value is nonzero.
The lpSecurityDescriptor member of the structure specifies a security descriptor for the new directory. If lpSecurityAttributes is NULL, the directory gets a default security descriptor. The target file system must support security on files and directories for this parameter to have an effect.
我来回复