Click here to Skip to main content
15,925,505 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionglutDestroyWindow (OpenGL) Pin
barakman18-Jan-06 6:18
barakman18-Jan-06 6:18 
QuestionListening to pipes Pin
Raylan18-Jan-06 6:07
Raylan18-Jan-06 6:07 
QuestionRepositioning a cursor in a control Pin
Tombo18-Jan-06 5:17
Tombo18-Jan-06 5:17 
AnswerRe: Repositioning a cursor in a control Pin
FarPointer18-Jan-06 5:49
FarPointer18-Jan-06 5:49 
GeneralRe: Repositioning a cursor in a control Pin
Tombo18-Jan-06 6:17
Tombo18-Jan-06 6:17 
QuestionCan't update text file Pin
BuckBrown18-Jan-06 5:14
BuckBrown18-Jan-06 5:14 
AnswerRe: Can't update text file Pin
Tombo18-Jan-06 5:26
Tombo18-Jan-06 5:26 
AnswerRe: Can't update text file Pin
_psh_18-Jan-06 5:27
_psh_18-Jan-06 5:27 
Hi,

According to the MSDN library at

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_fopen.2c_._wfopen.asp

they say

"When the "r+", "w+", or "a+" access type is specified, both reading and writing are allowed (the file is said to be open for "update"). However, when you switch between reading and writing, there must be an intervening fflush, fsetpos, fseek, or rewind operation. The current position can be specified for the fsetpos or fseek operation, if desired."

So it looks like you will have to reset the open file pointer to the appropriate position before switching between reading and writing operations. If possible, it may be more convenient for you to read and write using separate sessions.

Hope this helps.

Paul

QuestionHow to store login/password in Windows Registry? Pin
Priya..k18-Jan-06 4:00
Priya..k18-Jan-06 4:00 
AnswerRe: How to store login/password in Windows Registry? Pin
David Crow18-Jan-06 4:04
David Crow18-Jan-06 4:04 
AnswerRe: How to store login/password in Windows Registry? Pin
Nish Nishant18-Jan-06 4:41
sitebuilderNish Nishant18-Jan-06 4:41 
GeneralRe: How to store login/password in Windows Registry? Pin
James R. Twine18-Jan-06 6:34
James R. Twine18-Jan-06 6:34 
AnswerRe: How to store login/password in Windows Registry? Pin
ThatsAlok19-Jan-06 0:29
ThatsAlok19-Jan-06 0:29 
QuestionHow do I display text orientated 90 degrees Pin
britboyjohnson18-Jan-06 2:49
britboyjohnson18-Jan-06 2:49 
AnswerRe: How do I display text orientated 90 degrees Pin
David Crow18-Jan-06 2:58
David Crow18-Jan-06 2:58 
AnswerRe: How do I display text orientated 90 degrees Pin
basementman18-Jan-06 4:23
basementman18-Jan-06 4:23 
AnswerRe: How do I display text orientated 90 degrees Pin
FarPointer18-Jan-06 6:17
FarPointer18-Jan-06 6:17 
GeneralRe: How do I display text orientated 90 degrees Pin
britboyjohnson18-Jan-06 11:45
britboyjohnson18-Jan-06 11:45 
AnswerRe: How do I display text orientated 90 degrees Pin
Stephen Hewitt18-Jan-06 15:17
Stephen Hewitt18-Jan-06 15:17 
QuestionProblem in finding default browser Pin
Aryan S18-Jan-06 2:43
Aryan S18-Jan-06 2:43 
QuestionRe: Problem in finding default browser Pin
David Crow18-Jan-06 2:46
David Crow18-Jan-06 2:46 
AnswerRe: Problem in finding default browser Pin
ThatsAlok18-Jan-06 19:50
ThatsAlok18-Jan-06 19:50 
QuestionTOXCCT is right Pin
Rajesh R Subramanian18-Jan-06 2:38
professionalRajesh R Subramanian18-Jan-06 2:38 
AnswerRe: TOXCCT is right Pin
toxcct18-Jan-06 2:49
toxcct18-Jan-06 2:49 
AnswerRe: TOXCCT is right Pin
Rage18-Jan-06 6:20
professionalRage18-Jan-06 6:20 

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.