Click here to Skip to main content
14,210,255 members

C / C++ / MFC

 
GeneralRe: Class member function as call back Pin
Richard MacCutchan15-Mar-19 2:57
protectorRichard MacCutchan15-Mar-19 2:57 
AnswerRe: Class member function as call back Pin
Stefan_Lang19-Mar-19 4:07
memberStefan_Lang19-Mar-19 4:07 
QuestionWin32++ Dialog Pin
Member 1372187514-Mar-19 1:32
memberMember 1372187514-Mar-19 1:32 
AnswerRe: Win32++ Dialog Pin
Richard MacCutchan14-Mar-19 1:58
protectorRichard MacCutchan14-Mar-19 1:58 
GeneralRe: Win32++ Dialog Pin
CPallini14-Mar-19 2:30
mveCPallini14-Mar-19 2:30 
GeneralRe: Win32++ Dialog Pin
Richard MacCutchan14-Mar-19 2:35
protectorRichard MacCutchan14-Mar-19 2:35 
AnswerRe: Win32++ Dialog Pin
leon de boer14-Mar-19 14:34
memberleon de boer14-Mar-19 14:34 
QuestionGet file size Pin
_Flaviu14-Mar-19 0:31
member_Flaviu14-Mar-19 0:31 
I am trying to get the file size, with code:

::FindFirstFile((LPCTSTR)strFileSpec, &fd);
LARGE_INTEGER size;
size.HighPart = fd.nFileSizeHigh;
size.LowPart = fd.nFileSizeLow;
DWORD dwsize = (DWORD)size.QuadPart;

but is not right when the size of the file is huge, because at a file with 7.8 GB in windows explorer, my code says that has 3.03 GB ...
I have tried with this code too:
CFileStatus status;
CFile::GetStatus(strFileName, status);
DWORD dwsize = (DWORD)status.m_size);

the same result ... what I am doing wrong ?

My OS is Win10 64 bit.

modified 14-Mar-19 6:39am.

AnswerRe: Get file size Pin
CPallini14-Mar-19 1:09
mveCPallini14-Mar-19 1:09 
GeneralRe: Get file size Pin
_Flaviu14-Mar-19 1:20
member_Flaviu14-Mar-19 1:20 
GeneralRe: Get file size Pin
CPallini14-Mar-19 1:24
mveCPallini14-Mar-19 1:24 
QuestionGet system image list not working in some cases Pin
_Flaviu13-Mar-19 7:07
member_Flaviu13-Mar-19 7:07 
SuggestionRe: Get system image list not working in some cases Pin
Richard MacCutchan13-Mar-19 22:18
protectorRichard MacCutchan13-Mar-19 22:18 
GeneralRe: Get system image list not working in some cases Pin
_Flaviu14-Mar-19 0:16
member_Flaviu14-Mar-19 0:16 
QuestionWrite in registry Pin
_Flaviu13-Mar-19 0:04
member_Flaviu13-Mar-19 0:04 
AnswerRe: Write in registry Pin
Richard Deeming13-Mar-19 1:41
mveRichard Deeming13-Mar-19 1:41 
GeneralRe: Write in registry Pin
_Flaviu13-Mar-19 3:53
member_Flaviu13-Mar-19 3:53 
Questioninline question Pin
Rw23712-Mar-19 12:52
memberRw23712-Mar-19 12:52 
AnswerRe: inline question Pin
CPallini12-Mar-19 21:48
mveCPallini12-Mar-19 21:48 
QuestionC code for fourth degree polynomials Pin
Member 1417766810-Mar-19 19:45
memberMember 1417766810-Mar-19 19:45 
AnswerRe: C code for fourth degree polynomials Pin
Victor Nijegorodov10-Mar-19 22:27
memberVictor Nijegorodov10-Mar-19 22:27 
AnswerRe: C code for fourth degree polynomials Pin
leon de boer12-Mar-19 3:56
memberleon de boer12-Mar-19 3:56 
QuestionUnexpected sequence of cout / perror in console output Pin
Vaclav_10-Mar-19 7:23
memberVaclav_10-Mar-19 7:23 
AnswerRe: Unexpected sequence of cout / perror in console output Pin
Richard MacCutchan10-Mar-19 22:52
protectorRichard MacCutchan10-Mar-19 22:52 
GeneralRe: Unexpected sequence of cout / perror in console output Pin
k505411-Mar-19 2:28
memberk505411-Mar-19 2:28 

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.


Advertise | Privacy | Cookies | Terms of Service
Web02 | 2.8.190618.1 | Last Updated 18 Jun 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid