Get file size in mega bytes
-
Hi all :) How can I get file size in mega bytes ? Is there any good API, for this ? I have a MFC prpject. thank you.
-
Hi all :) How can I get file size in mega bytes ? Is there any good API, for this ? I have a MFC prpject. thank you.
big_denny_200 wrote:
Hi all :) How can I get file size in mega bytes ? Is there any good API, for this ?
GetFileSizeEx() for reteriving size of File and convert that into MB by divinding it by 1024 *1024
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
Hi all :) How can I get file size in mega bytes ? Is there any good API, for this ? I have a MFC prpject. thank you.
-
Hi all :) How can I get file size in mega bytes ? Is there any good API, for this ? I have a MFC prpject. thank you.
-
big_denny_200 wrote:
Hi all :) How can I get file size in mega bytes ? Is there any good API, for this ?
GetFileSizeEx() for reteriving size of File and convert that into MB by divinding it by 1024 *1024
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
Hi ThatsAlok, How are you?:) and StrFormatByteSizeA_**
**_
whitesky
-
Hi ThatsAlok, How are you?:) and StrFormatByteSizeA_**
**_
whitesky
WhiteSky wrote:
How are you?:)
Fine :)
WhiteSky wrote:
nd StrFormatByteSizeA
Will try!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
Hi ThatsAlok, How are you?:) and StrFormatByteSizeA_**
**_
whitesky
WhiteSky wrote:
StrFormatByteSizeA
Thanks for Api!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
WhiteSky wrote:
StrFormatByteSizeA
Thanks for Api!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
yo're welcome Mr Alok Gupta :)_**
**_
whitesky
-
yo're welcome Mr Alok Gupta :)_**
**_
whitesky
WhiteSky wrote:
welcome Mr Alok Gupta :)
Even Alok will do:)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
open the file using CFile then call "GetLength" it will give u size in bytes divide it by (1024*1024) ( im not sure this calculation is correct) :) SaRath.
"Don't Do Different things... Do Things Differently..."SaRath C wrote:
open the file using CFile
Not a good idea as
Open()
is an expensive call, not to mention that it could easily fail if another process has the file open.
"The largest fire starts but with the smallest spark." - David Crow