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

C / C++ / MFC

 
AnswerRe: CListView is evil? Pin
loket19-Jul-02 6:38
loket19-Jul-02 6:38 
GeneralRe: CListView is evil? Pin
Chris Losinger19-Jul-02 6:41
professionalChris Losinger19-Jul-02 6:41 
AnswerRe: CListView is evil? Pin
Chad Koehler19-Jul-02 9:12
Chad Koehler19-Jul-02 9:12 
GeneralRe: CListView is evil? Pin
Chris Losinger19-Jul-02 9:14
professionalChris Losinger19-Jul-02 9:14 
GeneralHandling events Pin
jparsons19-Jul-02 5:04
jparsons19-Jul-02 5:04 
GeneralRe: Handling events Pin
Nish Nishant19-Jul-02 5:09
sitebuilderNish Nishant19-Jul-02 5:09 
GeneralRe: Handling events Pin
jparsons19-Jul-02 5:12
jparsons19-Jul-02 5:12 
GeneralHandling data files from multiple software versions Pin
David Chamberlain19-Jul-02 5:02
David Chamberlain19-Jul-02 5:02 
This is a strategy question to try to get me pointed in the right direction.

My application records several items of data held in a structure into a log file. It also is able to read those log files and process them. As the application evolves, the contents of the structure increases and decreases ... elements are added and removed, based on evolving need.

While the software and the log files matches for a particular version, I need to be able to have sw version 3 read data log version 2, and data log version 1. Backward compatibility. It seems to me that I need multipe structures and multiple classes to read and write the log files, each class meant to handle the log of a particular version. The structure should be contained in the class with accessor functions to provide the data elements.

If the document object handles the File/Open, and it gets the filename from the dialog, and then opens the file and reads the first 4 bytes (an int) to determine which data log version is required, the doc would then instantiate an object of that log version class to handle reading the log file records into the structure. But, this seems to separate the file opening from the file reading, and it seems like that ought to be contained fully in a class meant to handle the data log files. If I don't open the file first, how else could I know which version class is needed?

Does this approach make sense? Is there a better way to keep software versions and data log versions compatible? What do others do to handle data files of different structures based on evolving formats?

Dave

"You can say that again." -- Dept. of Redundancy Dept.
GeneralRe: Handling data files from multiple software versions Pin
Rage19-Jul-02 6:34
professionalRage19-Jul-02 6:34 
GeneralRe: Handling data files from multiple software versions Pin
Navin19-Jul-02 6:56
Navin19-Jul-02 6:56 
QuestionCan DLL developed in .NET be used in VS6 projects Pin
Anonymous19-Jul-02 4:28
Anonymous19-Jul-02 4:28 
AnswerRe: Can DLL developed in .NET be used in VS6 projects Pin
jparsons19-Jul-02 5:13
jparsons19-Jul-02 5:13 
GeneralRe: Can DLL developed in .NET be used in VS6 projects Pin
Anonymous19-Jul-02 5:48
Anonymous19-Jul-02 5:48 
Generalurgent! change drag icon Pin
includeh1019-Jul-02 4:25
includeh1019-Jul-02 4:25 
GeneralRe: urgent! change drag icon Pin
Rage19-Jul-02 4:48
professionalRage19-Jul-02 4:48 
GeneralRe: urgent! change drag icon Pin
includeh1019-Jul-02 5:04
includeh1019-Jul-02 5:04 
GeneralRe: urgent! change drag icon Pin
Rage19-Jul-02 5:19
professionalRage19-Jul-02 5:19 
GeneralRe: urgent! change drag icon Pin
Rage19-Jul-02 5:29
professionalRage19-Jul-02 5:29 
GeneralRe: urgent! change drag icon Pin
includeh1019-Jul-02 6:08
includeh1019-Jul-02 6:08 
GeneralRe: urgent! change drag icon Pin
Rage19-Jul-02 6:13
professionalRage19-Jul-02 6:13 
GeneralHelp about "mciSendCommand" and MCI_GETDEVCAPS_CAN_RECORD Pin
Antony B.19-Jul-02 4:10
sussAntony B.19-Jul-02 4:10 
GeneralRe: Help about "mciSendCommand" and MCI_GETDEVCAPS_CAN_RECORD Pin
Anonymous21-Jul-02 20:19
Anonymous21-Jul-02 20:19 
GeneralC++ Memory Allocation a real headache Pin
Blade Runner19-Jul-02 4:07
Blade Runner19-Jul-02 4:07 
GeneralRe: C++ Memory Allocation a real headache Pin
Ravi Bhavnani19-Jul-02 4:19
professionalRavi Bhavnani19-Jul-02 4:19 
GeneralRe: C++ Memory Allocation a real headache Pin
Blade Runner19-Jul-02 4:39
Blade Runner19-Jul-02 4:39 

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.