Click here to Skip to main content
15,916,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Classes and dlls Pin
Wes Aday18-Aug-06 6:10
professionalWes Aday18-Aug-06 6:10 
GeneralRe: Classes and dlls Pin
Zac Howland18-Aug-06 6:12
Zac Howland18-Aug-06 6:12 
GeneralRe: Classes and dlls Pin
Waldermort18-Aug-06 7:02
Waldermort18-Aug-06 7:02 
AnswerRe: Classes and dlls Pin
David Crow18-Aug-06 6:24
David Crow18-Aug-06 6:24 
GeneralRe: Classes and dlls Pin
Waldermort18-Aug-06 7:12
Waldermort18-Aug-06 7:12 
GeneralRe: Classes and dlls Pin
David Crow18-Aug-06 7:37
David Crow18-Aug-06 7:37 
GeneralRe: Classes and dlls Pin
Tim Smith19-Aug-06 14:17
Tim Smith19-Aug-06 14:17 
Questionserialized objects conversion question Pin
toxcct18-Aug-06 5:02
toxcct18-Aug-06 5:02 
dear all,

i have solved my problem already, but with a way i don't like at all. but i couldn't find a working method in the time i had to do the job.

here is the topic :

i have a program (say v1.0) which serializes its objects into binary files.
but this program has grown up to v2.0, and the objects serialization scheme has changed.

both versions were working fine independantly. but the problem was starting when a version was trying to open an object which scheme was of the wrong version. the fact that app v2.0 doesn't read files of v1.0 is normal behavior (it is not supposed to recognize the version of the serialized object).

the thing is that i had to make an external project for the migration.
in the project, i have the sources of the new objects linked as an additionnal source directory in the compiler settings, and the old sources are directly copied in the migration project directory.
but as the objects files/classes remained the same between the 2 version, the compiler complains about types redefinitions.

i had the idea of putting the sets of sources into different namespaces, but i didn't succeed in doing this.

the only solution i found to compile the migration tool was to rename all the types of the old version, ,and appending an "Old" to their name... bad, isn't it ? D'Oh! | :doh:

so, i'd like to know you advise for the best design you think of to solve such a problem.

thanks already for your answers.

ps : i'm leaving internet, so, don't worry if i don't answer immediately


TOXCCT >>> GEII power

[VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

AnswerRe: serialized objects conversion question Pin
Zac Howland18-Aug-06 5:20
Zac Howland18-Aug-06 5:20 
GeneralRe: serialized objects conversion question Pin
toxcct20-Aug-06 21:24
toxcct20-Aug-06 21:24 
QuestionRe: serialized objects conversion question Pin
Zac Howland21-Aug-06 3:39
Zac Howland21-Aug-06 3:39 
AnswerRe: serialized objects conversion question Pin
toxcct21-Aug-06 3:41
toxcct21-Aug-06 3:41 
GeneralRe: serialized objects conversion question Pin
Zac Howland21-Aug-06 3:45
Zac Howland21-Aug-06 3:45 
GeneralRe: serialized objects conversion question Pin
toxcct21-Aug-06 3:53
toxcct21-Aug-06 3:53 
GeneralRe: serialized objects conversion question Pin
Zac Howland21-Aug-06 4:10
Zac Howland21-Aug-06 4:10 
AnswerRe: serialized objects conversion question Pin
Ravi Bhavnani19-Aug-06 15:50
professionalRavi Bhavnani19-Aug-06 15:50 
GeneralRe: serialized objects conversion question Pin
toxcct20-Aug-06 21:27
toxcct20-Aug-06 21:27 
GeneralRe: serialized objects conversion question Pin
Ravi Bhavnani21-Aug-06 1:24
professionalRavi Bhavnani21-Aug-06 1:24 
GeneralRe: serialized objects conversion question Pin
toxcct21-Aug-06 2:15
toxcct21-Aug-06 2:15 
GeneralRe: serialized objects conversion question Pin
Ravi Bhavnani21-Aug-06 2:26
professionalRavi Bhavnani21-Aug-06 2:26 
GeneralRe: serialized objects conversion question Pin
toxcct21-Aug-06 2:36
toxcct21-Aug-06 2:36 
GeneralRe: serialized objects conversion question Pin
Ravi Bhavnani21-Aug-06 3:17
professionalRavi Bhavnani21-Aug-06 3:17 
GeneralRe: serialized objects conversion question Pin
toxcct21-Aug-06 3:23
toxcct21-Aug-06 3:23 
GeneralRe: serialized objects conversion question Pin
Ravi Bhavnani21-Aug-06 3:32
professionalRavi Bhavnani21-Aug-06 3:32 
QuestionComboBox background problem in CPropertySheet wizard Pin
ewanb18-Aug-06 4:52
ewanb18-Aug-06 4:52 

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.