Click here to Skip to main content
15,849,306 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Strange Font Problem in Edit Control Pin
vishalgpt2-Jun-11 0:33
vishalgpt2-Jun-11 0:33 
GeneralRe: Strange Font Problem in Edit Control Pin
ShilpiP2-Jun-11 1:29
ShilpiP2-Jun-11 1:29 
AnswerRe: Strange Font Problem in Edit Control Pin
Rajesh R Subramanian2-Jun-11 6:45
professionalRajesh R Subramanian2-Jun-11 6:45 
QuestionVirualAlloc and ReadFile Pin
csrss1-Jun-11 9:33
csrss1-Jun-11 9:33 
AnswerRe: VirualAlloc and ReadFile Pin
Rajesh R Subramanian1-Jun-11 9:52
professionalRajesh R Subramanian1-Jun-11 9:52 
GeneralRe: VirualAlloc and ReadFile Pin
csrss1-Jun-11 10:10
csrss1-Jun-11 10:10 
GeneralRe: VirualAlloc and ReadFile Pin
Rajesh R Subramanian1-Jun-11 10:20
professionalRajesh R Subramanian1-Jun-11 10:20 
GeneralRe: VirualAlloc and ReadFile Pin
csrss1-Jun-11 10:50
csrss1-Jun-11 10: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 11:18
professionalRajesh R Subramanian1-Jun-11 11:18 
AnswerRe: VirualAlloc and ReadFile Pin
Rajesh R Subramanian1-Jun-11 10:24
professionalRajesh R Subramanian1-Jun-11 10:24 
GeneralRe: VirualAlloc and ReadFile Pin
csrss1-Jun-11 11:01
csrss1-Jun-11 11:01 
GeneralRe: VirualAlloc and ReadFile Pin
csrss1-Jun-11 11:08
csrss1-Jun-11 11:08 
GeneralRe: VirualAlloc and ReadFile Pin
Rajesh R Subramanian1-Jun-11 11:19
professionalRajesh R Subramanian1-Jun-11 11:19 
GeneralRe: VirualAlloc and ReadFile Pin
csrss1-Jun-11 12:11
csrss1-Jun-11 12:11 
QuestionRe: VirualAlloc and ReadFile Pin
David Crow1-Jun-11 11:10
David Crow1-Jun-11 11:10 
AnswerRe: VirualAlloc and ReadFile Pin
csrss1-Jun-11 12:12
csrss1-Jun-11 12:12 
Questionva_list not working form me and i dont know why Pin
kosacid1-Jun-11 6:19
kosacid1-Jun-11 6:19 
AnswerRe: va_list not working form me and i dont know why Pin
Luc Pattyn1-Jun-11 6:51
sitebuilderLuc Pattyn1-Jun-11 6:51 
GeneralRe: va_list not working form me and i dont know why Pin
kosacid1-Jun-11 7:02
kosacid1-Jun-11 7:02 
AnswerRe: va_list not working form me and i dont know why Pin
Luc Pattyn1-Jun-11 7:53
sitebuilderLuc Pattyn1-Jun-11 7:53 
GeneralOT Pin
CPallini1-Jun-11 9:14
mveCPallini1-Jun-11 9:14 
GeneralRe: OT Pin
Luc Pattyn1-Jun-11 14:59
sitebuilderLuc Pattyn1-Jun-11 14:59 
AnswerRe: va_list not working form me and i dont know why Pin
«_Superman_»1-Jun-11 7:01
professional«_Superman_»1-Jun-11 7:01 
GeneralRe: va_list not working form me and i dont know why Pin
kosacid1-Jun-11 7:06
kosacid1-Jun-11 7:06 
QuestionUsing ShellExecute to open a web page as a child of Dialog Pin
pix_programmer1-Jun-11 2:09
pix_programmer1-Jun-11 2:09 

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.