Is there have any function that allowed to convert byte to kilobyte??
Printable View
Is there have any function that allowed to convert byte to kilobyte??
1 KB = 1024 B
1 MB = 1024 KB
1 GB = 1024 MB
etc.
Do you need anything more?
i knew abt this... i means do there have any function that have any function that can convert directly?Quote:
Originally Posted by cilu
There is something: StrFormatByteSize64 and StrFormatByteSize.
What's wrong with division? :confused:Quote:
Originally Posted by lsy
Division is BAD - "A house divided can not stand"Quote:
Originally Posted by GCDEF
So use multiplication by 0.0009765625. :eek: ;)
LOL. Multiplication is several times faster. ;)Quote:
Originally Posted by TheCPUWizard
Historically true, and historically significant.Quote:
Originally Posted by cilu
However it has been at lease a decade where I have seen a real world case of this being significant.
i try but it showing undeclared identifier... do you have any sample??Quote:
Originally Posted by cilu
included header file shlwapi.h in code
Include already but error still appearQuote:
Originally Posted by ashukasama
able to open this file "shlwapi.h"
also whats error "will you post"
Sample? The use is so simple.
I never actually used the function, and though MSDN says for minimum operating system "Windows 2000, Windows NT 4.0 with Internet Explorer 5, Windows 98, Windows 95 with Internet Explorer 5", I believe it is also supported on Win XP.
how i check the file is open??Quote:
Originally Posted by ashukasama
before and after include shlwapi.h the error is same..."undeclared identifier"
right click on fileQuote:
Originally Posted by lsy
#include "shlwapi.h"
on context menu you will find Open Document "shlwapi.h"
try to open it ,
if not found then search file in your computer