Click here to Skip to main content
15,891,409 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Strange Font Problem in Edit Control Pin
Albert Holguin1-Jun-11 18:32
professionalAlbert Holguin1-Jun-11 18:32 
AnswerRe: Strange Font Problem in Edit Control Pin
ShilpiP1-Jun-11 18:45
ShilpiP1-Jun-11 18:45 
GeneralRe: Strange Font Problem in Edit Control Pin
vishalgpt1-Jun-11 19:00
vishalgpt1-Jun-11 19:00 
GeneralRe: Strange Font Problem in Edit Control Pin
ShilpiP1-Jun-11 19:59
ShilpiP1-Jun-11 19:59 
GeneralRe: Strange Font Problem in Edit Control Pin
ThatsAlok1-Jun-11 20:09
ThatsAlok1-Jun-11 20:09 
JokeRe: Strange Font Problem in Edit Control Pin
ShilpiP1-Jun-11 20:35
ShilpiP1-Jun-11 20:35 
GeneralRe: Strange Font Problem in Edit Control Pin
ThatsAlok1-Jun-11 20:51
ThatsAlok1-Jun-11 20:51 
GeneralRe: Strange Font Problem in Edit Control Pin
ShilpiP1-Jun-11 21:29
ShilpiP1-Jun-11 21:29 
GeneralRe: Strange Font Problem in Edit Control Pin
vishalgpt1-Jun-11 21:05
vishalgpt1-Jun-11 21:05 
GeneralRe: Strange Font Problem in Edit Control Pin
ShilpiP1-Jun-11 21:30
ShilpiP1-Jun-11 21:30 
GeneralRe: Strange Font Problem in Edit Control Pin
vishalgpt1-Jun-11 22:04
vishalgpt1-Jun-11 22:04 
GeneralRe: Strange Font Problem in Edit Control Pin
ShilpiP1-Jun-11 22:46
ShilpiP1-Jun-11 22:46 
GeneralRe: Strange Font Problem in Edit Control Pin
vishalgpt1-Jun-11 23:33
vishalgpt1-Jun-11 23:33 
GeneralRe: Strange Font Problem in Edit Control Pin
ShilpiP2-Jun-11 0:29
ShilpiP2-Jun-11 0:29 
AnswerRe: Strange Font Problem in Edit Control Pin
Rajesh R Subramanian2-Jun-11 5:45
professionalRajesh R Subramanian2-Jun-11 5:45 
QuestionVirualAlloc and ReadFile Pin
csrss1-Jun-11 8:33
csrss1-Jun-11 8:33 
AnswerRe: VirualAlloc and ReadFile Pin
Rajesh R Subramanian1-Jun-11 8:52
professionalRajesh R Subramanian1-Jun-11 8:52 
GeneralRe: VirualAlloc and ReadFile Pin
csrss1-Jun-11 9:10
csrss1-Jun-11 9:10 
GeneralRe: VirualAlloc and ReadFile Pin
Rajesh R Subramanian1-Jun-11 9:20
professionalRajesh R Subramanian1-Jun-11 9:20 
GeneralRe: VirualAlloc and ReadFile Pin
csrss1-Jun-11 9:50
csrss1-Jun-11 9:50 
At this moment:

while (FALSE != ReadFile(hDevice, bInitialBuffer, BASE_BUFFER_SIZE, 
		(LPDWORD)&dwReadBytes, 0) && dwReadBytes > 0)
	{
		TRACE1("got some buffer! %d", dwReadBytes);


dwReadBytes contains right value, which is 106 bytes, that is exactly the size of my file (just a text file). Here :

lpdwBytesRead += dwReadBytes;

It tries to append them, but lpdwBytesRead contain some trash, even if it has been initialized outside the function to zero:

DWORD read = 0;
BYTE *DataBuffer = ReadBytes(hFile, &read);


When function returns, read is zero and there is no buffer returned Frown | :(
011011010110000101100011011010000110100101101110
0110010101110011

GeneralRe: VirualAlloc and ReadFile Pin
Rajesh R Subramanian1-Jun-11 10:18
professionalRajesh R Subramanian1-Jun-11 10:18 
AnswerRe: VirualAlloc and ReadFile Pin
Rajesh R Subramanian1-Jun-11 9:24
professionalRajesh R Subramanian1-Jun-11 9:24 
GeneralRe: VirualAlloc and ReadFile Pin
csrss1-Jun-11 10:01
csrss1-Jun-11 10:01 
GeneralRe: VirualAlloc and ReadFile Pin
csrss1-Jun-11 10:08
csrss1-Jun-11 10:08 
GeneralRe: VirualAlloc and ReadFile Pin
Rajesh R Subramanian1-Jun-11 10:19
professionalRajesh R Subramanian1-Jun-11 10:19 

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.