Click here to Skip to main content
15,914,066 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: stdcall_api & troubles Pin
toxcct8-Oct-08 3:00
toxcct8-Oct-08 3:00 
AnswerRe: stdcall_api & troubles Pin
Roger Stoltz8-Oct-08 2:56
Roger Stoltz8-Oct-08 2:56 
GeneralRe: stdcall_api & troubles Pin
toxcct8-Oct-08 3:00
toxcct8-Oct-08 3:00 
GeneralRe: stdcall_api & troubles Pin
Roger Stoltz8-Oct-08 3:05
Roger Stoltz8-Oct-08 3:05 
GeneralRe: stdcall_api & troubles Pin
thoru8-Oct-08 3:03
thoru8-Oct-08 3:03 
GeneralRe: stdcall_api & troubles Pin
Roger Stoltz8-Oct-08 3:13
Roger Stoltz8-Oct-08 3:13 
QuestionGetFileSize Pin
mdsameerahsan8-Oct-08 1:22
mdsameerahsan8-Oct-08 1:22 
AnswerRe: GetFileSize Pin
Jijo.Raj8-Oct-08 1:46
Jijo.Raj8-Oct-08 1:46 
mdsameerahsan wrote:
I am using GetFileSize() to get the Hard Drive Size but this function is getting fail. Code is here:


What is the last error code? Add @err,hr to watch window. You could see the last error description. Your code seems fine. May be something wrong with your file handle. Anyway check the last error description.

mdsameerahsan wrote:
And what is the use of High and Low DWORD. I try to get the information from MSDN but could not understand.


The GetFileSize() api returns the total file size as 8 bytes that's by using two DWORDS. The dwFileSizeHigh stands for the low order 4 bytes and dwFileSizeHigh stands for high order 4 bytes. For getting the real file size, you should read them together.

Regards,
Jijo.

_____________________________________________________

http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

AnswerRe: GetFileSize Pin
Michael Schubert8-Oct-08 1:50
Michael Schubert8-Oct-08 1:50 
QuestionRe: GetFileSize Pin
Mark Salsbery8-Oct-08 5:01
Mark Salsbery8-Oct-08 5:01 
JokeRe: GetFileSize Pin
David Crow8-Oct-08 10:03
David Crow8-Oct-08 10:03 
GeneralRe: GetFileSize Pin
Sauce!9-Oct-08 18:17
Sauce!9-Oct-08 18:17 
GeneralRe: GetFileSize Pin
David Crow10-Oct-08 3:05
David Crow10-Oct-08 3:05 
JokeRe: GetFileSize Pin
Mark Salsbery10-Oct-08 4:47
Mark Salsbery10-Oct-08 4:47 
QuestionNo RTTI tutorials? Pin
George_George8-Oct-08 1:13
George_George8-Oct-08 1:13 
QuestionRe: No RTTI tutorials? Pin
Mark Salsbery8-Oct-08 5:03
Mark Salsbery8-Oct-08 5:03 
AnswerRe: No RTTI tutorials? Pin
George_George8-Oct-08 19:33
George_George8-Oct-08 19:33 
QuestionRe: No RTTI tutorials? Pin
CPallini8-Oct-08 7:02
mveCPallini8-Oct-08 7:02 
AnswerRe: No RTTI tutorials? Pin
led mike8-Oct-08 10:23
led mike8-Oct-08 10:23 
GeneralRe: No RTTI tutorials? Pin
George_George8-Oct-08 19:41
George_George8-Oct-08 19:41 
AnswerRe: No RTTI tutorials? Pin
George_George8-Oct-08 19:39
George_George8-Oct-08 19:39 
GeneralRe: No RTTI tutorials? Pin
CPallini8-Oct-08 21:45
mveCPallini8-Oct-08 21:45 
GeneralRe: No RTTI tutorials? Pin
George_George8-Oct-08 22:58
George_George8-Oct-08 22:58 
AnswerRe: No RTTI tutorials? Pin
led mike8-Oct-08 10:25
led mike8-Oct-08 10:25 
JokeRe: No RTTI tutorials? Pin
CPallini8-Oct-08 10:45
mveCPallini8-Oct-08 10:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.