Click here to Skip to main content
15,568,244 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Richedit text box Pin
prasad_som17-Dec-06 19:37
prasad_som17-Dec-06 19:37 
GeneralRe: Richedit text box Pin
zareee17-Dec-06 20:10
zareee17-Dec-06 20:10 
QuestionAbout CD/DVD Writing Software Pin
yudhisthira17-Dec-06 18:53
yudhisthira17-Dec-06 18:53 
AnswerRe: About CD/DVD Writing Software Pin
kakan17-Dec-06 20:29
professionalkakan17-Dec-06 20:29 
AnswerRe: About CD/DVD Writing Software Pin
Trollslayer18-Dec-06 1:50
mentorTrollslayer18-Dec-06 1:50 
AnswerRe: About CD/DVD Writing Software Pin
Hamid_RT18-Dec-06 1:53
Hamid_RT18-Dec-06 1:53 
QuestionWriting to the middle of a file Pin
Inatha17-Dec-06 18:17
Inatha17-Dec-06 18:17 
AnswerRe: Writing to the middle of a file [modified] Pin
anu_8817-Dec-06 19:13
anu_8817-Dec-06 19:13 
From MSDN:

When a file is opened with the "a" or "a+" access type, all write 
operations occur at the end of the file. The file pointer can be 
repositioned using fseek or rewind but is always moved back to the end of 
the file before any write operation is carried out. Thus, existing data 
cannot be overwritten.

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 instead of using append mode try to use r+ it is for both reading and writing.

Hope this helps.




-- modified at 0:31 Monday 18th December, 2006
GeneralRe: Writing to the middle of a file Pin
Inatha18-Dec-06 2:31
Inatha18-Dec-06 2:31 
GeneralRe: Writing to the middle of a file Pin
anu_8818-Dec-06 18:11
anu_8818-Dec-06 18:11 
QuestionTurning an MFC application to a Win32 Console Application Pin
Mohamed Douffir17-Dec-06 13:43
Mohamed Douffir17-Dec-06 13:43 
AnswerRe: Turning an MFC application to a Win32 Console Application Pin
Mark Salsbery17-Dec-06 14:36
Mark Salsbery17-Dec-06 14:36 
GeneralRe: Turning an MFC application to a Win32 Console Application Pin
Stephen Hewitt17-Dec-06 16:53
Stephen Hewitt17-Dec-06 16:53 
GeneralRe: Turning an MFC application to a Win32 Console Application Pin
Mark Salsbery17-Dec-06 16:59
Mark Salsbery17-Dec-06 16:59 
GeneralRe: Turning an MFC application to a Win32 Console Application Pin
Stephen Hewitt17-Dec-06 17:00
Stephen Hewitt17-Dec-06 17:00 
GeneralRe: Turning an MFC application to a Win32 Console Application Pin
Mark Salsbery17-Dec-06 17:07
Mark Salsbery17-Dec-06 17:07 
QuestionRe: Turning an MFC application to a Win32 Console Application Pin
Mohamed Douffir18-Dec-06 13:03
Mohamed Douffir18-Dec-06 13:03 
Questionquestion about CDialog Pin
zizzzz17-Dec-06 8:46
zizzzz17-Dec-06 8:46 
AnswerRe: question about CDialog Pin
CPallini17-Dec-06 8:59
mveCPallini17-Dec-06 8:59 
AnswerRe: question about CDialog Pin
Hamid_RT18-Dec-06 7:39
Hamid_RT18-Dec-06 7:39 
QuestionToolBar 24-bit bitmap problem [modified] Pin
levelboy17-Dec-06 8:31
levelboy17-Dec-06 8:31 
AnswerRe: ToolBar 24-bit bitmap problem [modified] Pin
Mark Salsbery17-Dec-06 10:17
Mark Salsbery17-Dec-06 10:17 
GeneralRe: ToolBar 24-bit bitmap problem [modified] Pin
levelboy17-Dec-06 10:50
levelboy17-Dec-06 10:50 
GeneralRe: ToolBar 24-bit bitmap problem Pin
Mark Salsbery17-Dec-06 12:03
Mark Salsbery17-Dec-06 12:03 
GeneralRe: ToolBar 24-bit bitmap problem Pin
levelboy17-Dec-06 12:06
levelboy17-Dec-06 12:06 

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.