0

Hi,

I have a file of approximately 4.19GB. I want to get the totall size of file using code in VC++, Here is my code

FILE *fptrSampleVideo = fopen(filename,"rb+");

if(fptrSampleVideo)
{

fseek(fptrSampleVideo,0,SEEK_END);

uncompressedVideoSize = ftell(fptrSampleVideo);

}

If the file is of small size, ftell() return position correctly and the size is also correct.

If the file is of large size (4.19GB), ftell() return position 4, which is wrong.

It must return 4,190,000,000 etc. some thing like that.

can any one guide me what is the case?

Many Thanks,

--
Regards,
Asif

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by Ancient Dragon
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.