September 16th, 2003, 09:38 PM
What's a DWORD?
I'm trying to get the size of a file with CFileFind's GetLength function. It returns the size as a DWORD (supposedly).
Question is, what's a DWORD? How can I put that into a double so I can use it?
Also, when I'm CString.Format'ing, do I just put doubles in as ("%d", myDouble)? Thanks!
September 16th, 2003, 10:31 PM
In Windows, a DWORD is defined as a long int. It is not a floating-point number.
Off the top of my head, the format specifier should be %ld .
I had written that during class break last night.
Visual C++6 Help File definition:
DWORD A 32-bit unsigned integer or the address of a segment and its associated offset.
Therefore the format specifier should be %lu .
Last edited by dwise1_aol; September 17th, 2003 at 03:12 PM.