Click here to Skip to main content
15,886,812 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionVisual C++ MFC,CDocument::SetTitle invalid Pin
akira3222-Jul-09 21:38
akira3222-Jul-09 21:38 
AnswerRe: Visual C++ MFC,CDocument::SetTitle invalid Pin
Kushagra Tiwari23-Jul-09 0:04
Kushagra Tiwari23-Jul-09 0:04 
QuestionProblem with ReadFile Funhction Pin
Shiv Murti Pal22-Jul-09 21:19
Shiv Murti Pal22-Jul-09 21:19 
AnswerRe: Problem with ReadFile Funhction Pin
Michael Schubert22-Jul-09 21:47
Michael Schubert22-Jul-09 21:47 
GeneralRe: Problem with ReadFile Funhction Pin
Shiv Murti Pal22-Jul-09 23:37
Shiv Murti Pal22-Jul-09 23:37 
GeneralRe: Problem with ReadFile Funhction Pin
Michael Schubert22-Jul-09 23:53
Michael Schubert22-Jul-09 23:53 
GeneralRe: Problem with ReadFile Funhction Pin
Shiv Murti Pal23-Jul-09 2:27
Shiv Murti Pal23-Jul-09 2:27 
GeneralRe: Problem with ReadFile Funhction Pin
krmed23-Jul-09 2:51
krmed23-Jul-09 2:51 
Have you seen the Return Value section of MSDN?
If the function succeeds, the return value is nonzero.

If the function fails, the return value is 0 (zero). To get extended error information, call GetLastError.

If the return value is nonzero and the number of bytes read is 0 (zero),
the file pointer is beyond the current end of the file at the time of
the read operation. However, if the file is opened with FILE_FLAG_OVERLAPPED
and lpOverlapped is not NULL, the return value is 0 (zero) and GetLastError
returns ERROR_HANDLE_EOF when the file pointer goes beyond the current end
of file.

What is the value of aa when the function returns? Try calling GetLastError() to get more information.

Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

GeneralRe: Problem with ReadFile Funhction Pin
Shiv Murti Pal23-Jul-09 18:56
Shiv Murti Pal23-Jul-09 18:56 
GeneralRe: Problem with ReadFile Funhction Pin
Shiv Murti Pal24-Jul-09 1:25
Shiv Murti Pal24-Jul-09 1:25 
QuestionHow to generate Keyboard events ? Pin
Member 383463022-Jul-09 21:14
Member 383463022-Jul-09 21:14 
AnswerRe: How to generate Keyboard events ? Pin
Emilio Garavaglia22-Jul-09 21:52
Emilio Garavaglia22-Jul-09 21:52 
AnswerRe: How to generate Keyboard events ? Pin
«_Superman_»22-Jul-09 22:18
professional«_Superman_»22-Jul-09 22:18 
AnswerRe: How to generate Keyboard events ? Pin
Adam Roderick J22-Jul-09 22:45
Adam Roderick J22-Jul-09 22:45 
GeneralRe: How to generate Keyboard events ? Pin
Kushagra Tiwari23-Jul-09 0:16
Kushagra Tiwari23-Jul-09 0:16 
GeneralRe: How to generate Keyboard events ? Pin
Member 383463023-Jul-09 0:43
Member 383463023-Jul-09 0:43 
AnswerRe: How to generate Keyboard events ? Pin
Adam Roderick J23-Jul-09 18:26
Adam Roderick J23-Jul-09 18:26 
QuestionGetting client computer name using its IP Pin
sunny_vc22-Jul-09 21:09
sunny_vc22-Jul-09 21:09 
AnswerRe: Getting client computer name using its IP Pin
Stuart Dootson22-Jul-09 21:40
professionalStuart Dootson22-Jul-09 21:40 
AnswerRe: Getting client computer name using its IP Pin
Emilio Garavaglia22-Jul-09 21:58
Emilio Garavaglia22-Jul-09 21:58 
QuestionHow to handle WM_KEYDOWN and WM_CHAR messages in Combo Box Pin
Pryabu22-Jul-09 20:21
Pryabu22-Jul-09 20:21 
AnswerRe: How to handle WM_KEYDOWN and WM_CHAR messages in Combo Box Pin
Code-o-mat22-Jul-09 21:19
Code-o-mat22-Jul-09 21:19 
QuestionResource Sharing issue Pin
georgekjolly22-Jul-09 20:03
georgekjolly22-Jul-09 20:03 
AnswerRe: Resource Sharing issue Pin
Code-o-mat22-Jul-09 21:40
Code-o-mat22-Jul-09 21:40 
QuestionHow can i make "make File" from VS 2005? Pin
bankey101022-Jul-09 19:40
bankey101022-Jul-09 19:40 

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.