Click here to Skip to main content
15,902,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Need help for CStdioFile/CFile Pin
Naveen20-Oct-09 17:55
Naveen20-Oct-09 17:55 
GeneralRe: Need help for CStdioFile/CFile Pin
Nicholas Amh20-Oct-09 19:10
Nicholas Amh20-Oct-09 19:10 
QuestionRe: Need help for CStdioFile/CFile Pin
Randor 20-Oct-09 19:23
professional Randor 20-Oct-09 19:23 
AnswerRe: Need help for CStdioFile/CFile Pin
Nicholas Amh20-Oct-09 19:44
Nicholas Amh20-Oct-09 19:44 
GeneralRe: Need help for CStdioFile/CFile Pin
Randor 20-Oct-09 21:08
professional Randor 20-Oct-09 21:08 
AnswerRe: Need help for CStdioFile/CFile Pin
Adam Roderick J20-Oct-09 20:23
Adam Roderick J20-Oct-09 20:23 
GeneralRe: Need help for CStdioFile/CFile Pin
Nicholas Amh20-Oct-09 20:59
Nicholas Amh20-Oct-09 20:59 
GeneralRe: Need help for CStdioFile/CFile Pin
Richard MacCutchan21-Oct-09 2:33
mveRichard MacCutchan21-Oct-09 2:33 
Nicholas Amh wrote:
Okay, thanks. The file that i write have already done writing before going for read.


Don't use threads for this unless you understand the implications; the code you have shown suggests you are something of a beginner. The best way of approaching this is to open, write, close the file in the first part of the program, then open, read, close in the second part. Also leave out the sharing part until you have the main logic working. Write the data to the file, use notepad or another editor to check the content is correct. Then read back the file and convert your data to its internal format. Also remember that
Format()
is for output and
scanf()
is for input.
QuestionWhen is a CWnd ready to receive messages Pin
ForNow20-Oct-09 16:14
ForNow20-Oct-09 16:14 
AnswerRe: When is a CWnd ready to receive messages Pin
Naveen20-Oct-09 18:12
Naveen20-Oct-09 18:12 
GeneralRe: When is a CWnd ready to receive messages Pin
ForNow20-Oct-09 18:19
ForNow20-Oct-09 18:19 
GeneralRe: When is a CWnd ready to receive messages Pin
Naveen20-Oct-09 18:29
Naveen20-Oct-09 18:29 
GeneralRe: When is a CWnd ready to receive messages Pin
ForNow20-Oct-09 18:39
ForNow20-Oct-09 18:39 
GeneralRe: When is a CWnd ready to receive messages Pin
Naveen20-Oct-09 18:43
Naveen20-Oct-09 18:43 
GeneralRe: When is a CWnd ready to receive messages Pin
ForNow20-Oct-09 18:54
ForNow20-Oct-09 18:54 
GeneralRe: When is a CWnd ready to receive messages Pin
Hans Dietrich20-Oct-09 21:59
mentorHans Dietrich20-Oct-09 21:59 
GeneralRe: When is a CWnd ready to receive messages Pin
ForNow21-Oct-09 14:42
ForNow21-Oct-09 14:42 
GeneralRe: When is a CWnd ready to receive messages Pin
Hans Dietrich22-Oct-09 1:21
mentorHans Dietrich22-Oct-09 1:21 
QuestionWindows Vista + VC++ 6.0 + Gsoap 2.7 = ??? Pin
d0mufasa20-Oct-09 14:21
d0mufasa20-Oct-09 14:21 
AnswerRe: Windows Vista + VC++ 6.0 + Gsoap 2.7 = ??? Pin
CPallini20-Oct-09 20:35
mveCPallini20-Oct-09 20:35 
GeneralRe: Windows Vista + VC++ 6.0 + Gsoap 2.7 = ??? Pin
ThatsAlok20-Oct-09 21:54
ThatsAlok20-Oct-09 21:54 
AnswerRe: Windows Vista + VC++ 6.0 + Gsoap 2.7 = ??? Pin
Member 829494-Jan-10 16:13
Member 829494-Jan-10 16:13 
Questiongsoap success followed by a soap fault?? Pin
d0mufasa20-Oct-09 14:14
d0mufasa20-Oct-09 14:14 
QuestionMy Payroll report Pin
Ev3nflow20-Oct-09 10:50
Ev3nflow20-Oct-09 10:50 
AnswerRe: My Payroll report Pin
David Crow20-Oct-09 10:56
David Crow20-Oct-09 10:56 

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.