I would like to obtain the file length of a file larger than 4GB.
I am using CVI 6.0 under XP
The only function I have found "GetFileSizeEx()" from the SDK but always returns with an error (error #6 "The handle is invalid".)
LARGE_INTEGER FileSize ;
double Size ;
#define E32 4294967296.0 //2^32
fp = fopen( File,"rb" ) ;
ret=GetFileSizeEx (fp, &FileSize) ;
Size = FileSize.HighPart*E32 + FileSize.LowPart ;
Does anybody know a working method under CVI?