Главная страница | назад





Article #17574: Displaying an __int64 value.

 Question and Answer Database
FAQ2574C.txt Displaying an __int64 value.
Category :C/C++ Language Issues
Platform :All
Product :C++Builder 3.x
Question:
How do I display an __int64 value?
Answer:
Here is an example using the GetDiskFreeSpaceEx() WinAPI func:
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
// ULARGE_INTEGER is a __int64 value.
ULARGE_INTEGER fbatc, tnob, tnofb;
GetDiskFreeSpaceEx("c:", &fbatc, &tnob, &tnofb );
char a[40] = { 0 };
sprintf(a, "%I64Ld", tnob.QuadPart);
ShowMessage(a);
}
//---------------------------------------------------------------------------
7/2/98 10:32:32 AM

Last Modified: 01-SEP-99