ULONGLONG size;
CString strFilePath;
CFileStatus fileStatus;

if (CFile::GetStatus(strFilePath, fileStatus))
{
   size = fileStatus.m_size;
}