Login Page - Create Account

Support Board


Date/Time: Sun, 24 Nov 2024 11:55:23 +0000



Post From: Data file (File extension: .scid) struct s_Intraday - Total Records

[2013-09-30 09:09:51]
Sierra Chart Engineering - Posts: 104368
We have never known getting the file size taking two seconds. It should take only microseconds.

Here is a function you can use:


DWORD GetFileSize(const CString& PathAndFileName)
{
  HANDLE File
    = CreateFile(PathAndFileName,
      GENERIC_READ,
      FILE_SHARE_READ | FILE_SHARE_WRITE,
      NULL,
      OPEN_EXISTING,
      0,
      NULL
    );
  if (File == INVALID_HANDLE_VALUE)
    return INVALID_FILE_SIZE;
  
  DWORD FileSize = ::GetFileSize(File, NULL);
  
  CloseHandle(File);
  
  return FileSize;
}

Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2013-09-30 09:10:20