请问Current这里这的是什么意思啊?是我这个程序所在的磁盘吗?谢谢了!

nikeacer2001 2004-01-12 10:56:32
extern PACKAGE __int64 __fastcall DiskFree(Byte Drive);

Description

DiskFree returns the number of free bytes on the specified drive, where 0 = Current, 1 = A, 2 = B, and so on.

DiskFree returns -1 if the drive number is invalid.
...全文
96 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
fansses 2004-01-12
  • 打赏
  • 举报
回复
__int64 AmtFree = DiskFree(0);
__int64 Total = DiskSize(0);

AnsiString S;
S.sprintf("%I64d percent of the space on drive 0 is free: %I64d KB", AmtFree*100/Total, AmtFree/1024 );

Edit1->Text=S;
nikeacer2001 2004-01-12
  • 打赏
  • 举报
回复
我的意思是这样,怎样可能会改变这个current的值
我的程序要创建临时文件,我担心空间不够,创建失败,所以我提前检查一下空间
fansses 2004-01-12
  • 打赏
  • 举报
回复


你试试不就知道了?


用金山快译翻译居然是什么涌流,晕

13,825

社区成员

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

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