DirectoryExists需要用哪个头文件?

失落的羊 2006-07-31 09:57:04
Determines whether a specified directory exists.

Unit

SysUtils

Category

file management routines

extern PACKAGE bool __fastcall DirectoryExists(constAnsiString Directory);

Description

Call DirectoryExists to determine whether the directory specified by the Name parameter exists. If the directory exists, the function returns true. If the directory does not exist, the function returns false.

If a full path name is entered, DirectoryExists searches for the directory along the designated path. Otherwise, the Name parameter is interpreted as a relative path name from the current directory.

上述是帮助文档,可是我在用这个函数的时候,总是出错,提示没有定义?
...全文
493 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
失落的羊 2006-08-04
  • 打赏
  • 举报
回复
还是笨猫聪明!是函数名搞错啦!
BlueDeepOcean 2006-08-01
  • 打赏
  • 举报
回复
#include <FileCtrl.hpp>
jaffy 2006-08-01
  • 打赏
  • 举报
回复
测试了,似乎不需要特别加入申明;空白文档加入即可,估计,LZ的函数名写错了
if (DirectoryExists("e:\\test"))
ShowMessage("test");
sfengnet 2006-08-01
  • 打赏
  • 举报
回复
#include <vcl.h> 就可以了吧

13,825

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧