Article View: borland.public.cppbuilder.nativeapi
Article #9941GetDiskFreeSpaceEx question
From: Martin C
Date: Tue, 01 Jun 2004 02:47
Date: Tue, 01 Jun 2004 02:47
15 lines
1240 bytes
1240 bytes
Hi all,
I am using the code below to retrieve the free diskspace of my hard drive,
but I really don't know how to format the output to something like for
example 55.57 GB.
ULARGE_INTEGER fbatc, tnob, tnofb;
::GetDiskFreeSpaceEx(Path.c_str(), &fbatc, &tnob, &tnofb );
char a[40] = { 0 };
sprintf(a, "%I64Ld", (fbatc.QuadPart/1024)/1024);
ShowMessage(a);
Any help will be appreciated.
Thanks
Technical Details
Message-ID:
<40bbd229@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,782d9cc15321c56a,start X-Google-Attributes: gid10cc67,public From: "Martin C" <martincplus@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: GetDiskFreeSpaceEx question Date: Mon, 31 May 2004 20:47:25 -0600 Lines: 17 Organization: V Safe X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 81.10.4.238 Message-ID: <40bbd229@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1086050857 81.10.4.238 (31 May 2004 17:47:37 -0700) Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail