Click here to Skip to main content
15,913,722 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Interdependent classes Pin
BadKarma15-Aug-06 21:07
BadKarma15-Aug-06 21:07 
GeneralRe: Interdependent classes Pin
CoolASL15-Aug-06 22:09
CoolASL15-Aug-06 22:09 
GeneralRe: Interdependent classes Pin
Zac Howland16-Aug-06 5:01
Zac Howland16-Aug-06 5:01 
GeneralRe: Interdependent classes Pin
CoolASL15-Aug-06 22:08
CoolASL15-Aug-06 22:08 
QuestionFile reading and writing Pin
69 Bay14-Aug-06 23:51
69 Bay14-Aug-06 23:51 
AnswerRe: File reading and writing Pin
Christian Graus15-Aug-06 0:03
protectorChristian Graus15-Aug-06 0:03 
GeneralRe: File reading and writing Pin
69 Bay15-Aug-06 5:10
69 Bay15-Aug-06 5:10 
GeneralRe: File reading and writing Pin
Zac Howland15-Aug-06 9:50
Zac Howland15-Aug-06 9:50 
69 Bay wrote:
Would you copy the block to be altered to another memory block, edit it, and then save the original memory block upto the point that you gave altered, then save the altered block, and then save the remainder of the original again?


The code will be much easier to read, maintain, and debug if you read it all in, make your changes in memory, and then write it back out. Trying to make changes midstream invites bugs that are very difficult to find and fix. The only exception to this is when you are appending to the end of an existing file, in which case, it is very easy to just write your data without reading in what's already there.

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac

GeneralRe: File reading and writing Pin
69 Bay16-Aug-06 2:34
69 Bay16-Aug-06 2:34 
GeneralRe: File reading and writing Pin
Zac Howland16-Aug-06 5:05
Zac Howland16-Aug-06 5:05 
GeneralRe: File reading and writing Pin
Christian Graus15-Aug-06 11:03
protectorChristian Graus15-Aug-06 11:03 
QuestionRe: File reading and writing Pin
David Crow15-Aug-06 4:08
David Crow15-Aug-06 4:08 
AnswerRe: File reading and writing Pin
69 Bay15-Aug-06 5:05
69 Bay15-Aug-06 5:05 
QuestionIActiveDesktop Pin
Rinu_Raj14-Aug-06 23:03
Rinu_Raj14-Aug-06 23:03 
AnswerRe: IActiveDesktop [modified] Pin
Rinu_Raj14-Aug-06 23:08
Rinu_Raj14-Aug-06 23:08 
AnswerRe: IActiveDesktop Pin
Hamid_RT14-Aug-06 23:18
Hamid_RT14-Aug-06 23:18 
Questionsecurity library for Windows Mobile? Pin
George_George14-Aug-06 22:48
George_George14-Aug-06 22:48 
AnswerRe: security library for Windows Mobile? Pin
Mike Dimmick15-Aug-06 1:26
Mike Dimmick15-Aug-06 1:26 
GeneralRe: security library for Windows Mobile? Pin
George_George15-Aug-06 3:07
George_George15-Aug-06 3:07 
QuestionQuestion on Windows Network drive Pin
Jagadeesh VN14-Aug-06 22:43
Jagadeesh VN14-Aug-06 22:43 
QuestionI need help to create a basic program about series. Pin
magnifisa14-Aug-06 22:34
magnifisa14-Aug-06 22:34 
QuestionRe: I need help to create a basic program about series. Pin
David Crow15-Aug-06 4:10
David Crow15-Aug-06 4:10 
AnswerRe: I need help to create a basic program about series. Pin
Hamid_RT16-Aug-06 4:54
Hamid_RT16-Aug-06 4:54 
QuestionCGenericList Pin
jon-8014-Aug-06 22:24
professionaljon-8014-Aug-06 22:24 
QuestionScreen Scraping Pin
Billydo14-Aug-06 21:57
Billydo14-Aug-06 21:57 

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.