Click here to Skip to main content
15,917,177 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: threads Pin
Russell'22-Sep-08 23:41
Russell'22-Sep-08 23:41 
GeneralRe: threads Pin
ramana.g23-Sep-08 1:17
ramana.g23-Sep-08 1:17 
GeneralRe: threads Pin
Russell'23-Sep-08 3:53
Russell'23-Sep-08 3:53 
GeneralRe: threads [modified] Pin
Mark Salsbery23-Sep-08 10:47
Mark Salsbery23-Sep-08 10:47 
GeneralRe: threads [modified] Pin
Russell'24-Sep-08 21:46
Russell'24-Sep-08 21:46 
QuestionProfile to Profile copy using MAPI Pin
nagadravid22-Sep-08 21:53
nagadravid22-Sep-08 21:53 
QuestionGetting the size of file Pin
AlProb22-Sep-08 21:45
AlProb22-Sep-08 21:45 
AnswerRe: Getting the size of file Pin
Rajesh R Subramanian22-Sep-08 22:04
professionalRajesh R Subramanian22-Sep-08 22:04 
AlProb wrote:
unless you have a better idea how to get the size of the file?


May not be a "better" idea, but this is just another way to do it (Just found off a search):
TCHAR* sFile = _T("D:\\Rajesh\\Cheers.htm");
struct _stat buff;
_tstat(sFile, &buff);
cout<<"The size of your file is "<<buff.st_size<<" Bytes"<<endl;

Please note that _tstat returns an int, so if the file size is larger than the maximum value of an int, then this method won't work right!

Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche

.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]

AnswerRe: Getting the size of file Pin
Rajesh R Subramanian22-Sep-08 22:32
professionalRajesh R Subramanian22-Sep-08 22:32 
GeneralRe: Getting the size of file Pin
AlProb22-Sep-08 23:03
AlProb22-Sep-08 23:03 
AnswerRe: Getting the size of file Pin
akirilov22-Sep-08 23:18
akirilov22-Sep-08 23:18 
AnswerRe: Getting the size of file Pin
Michael Schubert22-Sep-08 23:41
Michael Schubert22-Sep-08 23:41 
GeneralRe: Getting the size of file Pin
Rajesh R Subramanian23-Sep-08 0:03
professionalRajesh R Subramanian23-Sep-08 0:03 
GeneralRe: Getting the size of file Pin
Michael Schubert23-Sep-08 0:32
Michael Schubert23-Sep-08 0:32 
GeneralRe: Getting the size of file Pin
Rajesh R Subramanian23-Sep-08 1:15
professionalRajesh R Subramanian23-Sep-08 1:15 
GeneralRe: Getting the size of file Pin
Michael Schubert23-Sep-08 1:22
Michael Schubert23-Sep-08 1:22 
GeneralRe: Getting the size of file Pin
Rajesh R Subramanian23-Sep-08 1:26
professionalRajesh R Subramanian23-Sep-08 1:26 
GeneralRe: Getting the size of file Pin
Michael Schubert23-Sep-08 1:28
Michael Schubert23-Sep-08 1:28 
GeneralRe: Getting the size of file Pin
Michael Schubert23-Sep-08 1:20
Michael Schubert23-Sep-08 1:20 
JokeRe: Getting the size of file Pin
Rajesh R Subramanian23-Sep-08 1:28
professionalRajesh R Subramanian23-Sep-08 1:28 
GeneralRe: Getting the size of file Pin
Michael Schubert23-Sep-08 1:34
Michael Schubert23-Sep-08 1:34 
JokeRe: Getting the size of file Pin
Rajesh R Subramanian23-Sep-08 1:45
professionalRajesh R Subramanian23-Sep-08 1:45 
GeneralRe: Getting the size of file Pin
Nibu babu thomas23-Sep-08 2:14
Nibu babu thomas23-Sep-08 2:14 
GeneralRe: Getting the size of file Pin
Michael Schubert23-Sep-08 2:26
Michael Schubert23-Sep-08 2:26 
GeneralRe: Getting the size of file Pin
Rajesh R Subramanian23-Sep-08 4:55
professionalRajesh R Subramanian23-Sep-08 4:55 

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.