回 帖 发 新 帖 刷新版面

主题:如何创建一个文件夹?

如题

回复列表 (共3个回复)

沙发

CreateDir()这个函数
用法:
CreatDir(AnsiString dir);
dir:你要建立的文件目录名,是Ansi字符串哦
有返回值的:如果操作成功,返回真,否则返回假

板凳

这个是api函数马???怎么用不了呢

3 楼

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.

我来回复

您尚未登录,请登录后再回复。点此登录或注册