Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with getting size of a large file 1

Status
Not open for further replies.

EzehM

Programmer
Feb 27, 2003
86
GB
My program seems to hang somewhere in this code snippet

if( CFile::GetStatus( path, FileStatus ) )
{
LONG pathSize = FileStatus.m_size;

The file in question is 2GB in size. Is this possible, and is there another API I can call in Visual C++ to get the file size?

Thanks

Milton

 
So in other words, use the GetFileSizeEx() function instead of GetFileSize().
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top