Click here to Skip to main content
15,918,193 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUsing VC++ DLLs as webservices Pin
CCSst25-Nov-04 13:26
CCSst25-Nov-04 13:26 
Question8 byte long integer? how? Pin
Kuniva25-Nov-04 10:27
Kuniva25-Nov-04 10:27 
AnswerRe: 8 byte long integer? how? Pin
Joaquín M López Muñoz25-Nov-04 11:35
Joaquín M López Muñoz25-Nov-04 11:35 
GeneralShortes Path Pin
slacker2125-Nov-04 9:59
slacker2125-Nov-04 9:59 
Questionhow LCD drive for C++?? Pin
conalmic25-Nov-04 8:48
conalmic25-Nov-04 8:48 
AnswerRe: how LCD drive for C++?? Pin
Maximilien25-Nov-04 9:17
Maximilien25-Nov-04 9:17 
AnswerRe: how LCD drive for C++?? Pin
John R. Shaw25-Nov-04 9:18
John R. Shaw25-Nov-04 9:18 
GeneralGetFileSize Pin
Fernando A. Gomez F.25-Nov-04 7:57
Fernando A. Gomez F.25-Nov-04 7:57 
Hello all. I'm using Windows' GetFileSize function to get the file size:

<br />
HANDLE hFile	  = 0;<br />
DWORD  dwLowSize  = 0;<br />
DWORD  dwHighSize = 0;<br />
QWORD  qwTotSize  = 0; // typedef unsigned __int64 QWORD;<br />
<br />
hFile = CreateFile(m_pFileInfo->szFileName, GENERIC_READ, FILE_SHARE_READ,<br />
    NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);<br />
dwLowSize = GetFileSize(hFile, &dwHighSize);<br />
CloseHandle(hFile);<br />


Now, I goy dwLowSize and dwHighSize. How can I get the __int64 value of the both? How should I combine dwLowSize and dwHighSize in order to get the complete size of the file?

Thanks.

KK.



Hear my words, that I might teach you,
Take my arms, that I might reach you,
but my words like silent raindrops fell,
echoed the will of silence...
GeneralRe: GetFileSize Pin
Joaquín M López Muñoz25-Nov-04 8:11
Joaquín M López Muñoz25-Nov-04 8:11 
GeneralRe: GetFileSize Pin
Archer28225-Nov-04 17:32
Archer28225-Nov-04 17:32 
GeneralSome help for Loop's Pin
faroqtam25-Nov-04 7:56
faroqtam25-Nov-04 7:56 
GeneralRe: Some help for Loop's Pin
John R. Shaw25-Nov-04 9:11
John R. Shaw25-Nov-04 9:11 
GeneralRe: Some help for Loop's Pin
Maximilien25-Nov-04 9:26
Maximilien25-Nov-04 9:26 
GeneralRe: Some help for Loop's Pin
Ravi Bhavnani25-Nov-04 9:27
professionalRavi Bhavnani25-Nov-04 9:27 
GeneralRe: Some help for Loop's Pin
faroqtam27-Nov-04 4:36
faroqtam27-Nov-04 4:36 
GeneralRe: Some help for Loop's Pin
namaskaaram25-Nov-04 22:42
namaskaaram25-Nov-04 22:42 
GeneralRe: Some help for Loop's Pin
toxcct25-Nov-04 23:22
toxcct25-Nov-04 23:22 
GeneralCStatic:SetIcon() How to put large icon on dialog Pin
Anonymous25-Nov-04 7:11
Anonymous25-Nov-04 7:11 
GeneralSelecting the word at mouse cursor position Pin
dlarkin7725-Nov-04 6:29
dlarkin7725-Nov-04 6:29 
GeneralRe: Selecting the word at mouse cursor position Pin
John R. Shaw25-Nov-04 6:55
John R. Shaw25-Nov-04 6:55 
Generaldll project does not produce library (.lib) Pin
AssemblySoft25-Nov-04 6:24
AssemblySoft25-Nov-04 6:24 
GeneralRe: dll project does not produce library (.lib) Pin
AssemblySoft25-Nov-04 6:35
AssemblySoft25-Nov-04 6:35 
GeneralRe: dll project does not produce library (.lib) Pin
John R. Shaw25-Nov-04 7:04
John R. Shaw25-Nov-04 7:04 
GeneralIcons in a treelist Pin
Anonymous25-Nov-04 6:19
Anonymous25-Nov-04 6:19 
GeneralRe: Icons in a treelist Pin
Joel Lucsy25-Nov-04 7:26
Joel Lucsy25-Nov-04 7:26 

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.