Click here to Skip to main content
14,930,087 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Overloading methods with identical content in lot of derived classes Pin
CPallini7-Jul-16 23:37
mveCPallini7-Jul-16 23:37 
GeneralRe: Overloading methods with identical content in lot of derived classes Pin
FriendOfAsherah8-Jul-16 3:45
MemberFriendOfAsherah8-Jul-16 3:45 
GeneralRe: Overloading methods with identical content in lot of derived classes Pin
CPallini8-Jul-16 9:00
mveCPallini8-Jul-16 9:00 
GeneralRe: Overloading methods with identical content in lot of derived classes Pin
FriendOfAsherah10-Jul-16 20:16
MemberFriendOfAsherah10-Jul-16 20:16 
GeneralRe: Overloading methods with identical content in lot of derived classes Pin
ellegonzalez18-Aug-16 22:59
Memberellegonzalez18-Aug-16 22:59 
GeneralRe: Overloading methods with identical content in lot of derived classes Pin
leon de boer8-Jul-16 3:01
Memberleon de boer8-Jul-16 3:01 
GeneralRe: Overloading methods with identical content in lot of derived classes Pin
FriendOfAsherah8-Jul-16 3:47
MemberFriendOfAsherah8-Jul-16 3:47 
GeneralRe: Overloading methods with identical content in lot of derived classes Pin
leon de boer8-Jul-16 18:25
Memberleon de boer8-Jul-16 18:25 
What is written looks very much like the way you do serialization in C++
Serialization - Wikipedia, the free encyclopedia[^]

Read the article there are a number of reasons why you may want to serialize code from transmission thru, time based processing thru to encryption protection of code.

You will note within the article they talk about C and C++ not having serialization but you can do it with a sort of standard form. Your code looks to me like that standard form. MFC has the same setup because it has serialized classes and even that is discussed in the wiki article.

Note MFC's main reason for serialization: "The technique is called differential execution. It is useful in the programming of user interfaces whose contents are time-varying — graphical objects can be created, removed, altered, or made to handle input events without necessarily having to write separate code to do those things."

You were saying you don't know why the original code was written like that and they won't let you change it. If you need the serialization it would indeed break the program if you write it a different way.

So I am suggesting you check if the code is indeed doing serialization. If it is and that serialization is still needed you can not change it even if you wanted to.
In vino veritas


modified 9-Jul-16 0:34am.

GeneralRe: Overloading methods with identical content in lot of derived classes Pin
FriendOfAsherah10-Jul-16 20:32
MemberFriendOfAsherah10-Jul-16 20:32 
AnswerRe: Overloading methods with identical content in lot of derived classes Pin
FriendOfAsherah13-Jul-16 0:45
MemberFriendOfAsherah13-Jul-16 0:45 
AnswerRe: Overloading methods with identical content in lot of derived classes Pin
Krishnakumartg19-Jul-16 20:14
MemberKrishnakumartg19-Jul-16 20:14 
GeneralRe: Overloading methods with identical content in lot of derived classes Pin
FriendOfAsherah19-Jul-16 23:06
MemberFriendOfAsherah19-Jul-16 23:06 
QuestionCMFCRibbonBar High DPI Pin
Paul Harrison 26-Jul-16 7:12
MemberPaul Harrison 26-Jul-16 7:12 
QuestionInternet Explorer Pin
Member 125311295-Jul-16 2:58
MemberMember 125311295-Jul-16 2:58 
AnswerRe: Internet Explorer Pin
Chris Losinger5-Jul-16 5:12
professionalChris Losinger5-Jul-16 5:12 
GeneralRe: Internet Explorer Pin
Member 125311295-Jul-16 20:16
MemberMember 125311295-Jul-16 20:16 
QuestionSuport for MFC Pin
Bram van Kampen3-Jul-16 14:15
MemberBram van Kampen3-Jul-16 14:15 
AnswerRe: Suport for MFC Pin
Daniel Pfeffer3-Jul-16 20:50
professionalDaniel Pfeffer3-Jul-16 20:50 
GeneralRe: Suport for MFC Pin
Bram van Kampen4-Jul-16 14:19
MemberBram van Kampen4-Jul-16 14:19 
AnswerRe: Suport for MFC Pin
Jochen Arndt3-Jul-16 21:12
professionalJochen Arndt3-Jul-16 21:12 
GeneralRe: Suport for MFC Pin
Bram van Kampen4-Jul-16 13:59
MemberBram van Kampen4-Jul-16 13:59 
GeneralRe: Suport for MFC Pin
Jochen Arndt4-Jul-16 21:34
professionalJochen Arndt4-Jul-16 21:34 
AnswerRe: Suport for MFC Pin
leon de boer4-Jul-16 20:55
Memberleon de boer4-Jul-16 20:55 
GeneralRe: Suport for MFC Pin
Bram van Kampen10-Jul-16 16:49
MemberBram van Kampen10-Jul-16 16:49 
QuestionHow to handle runtime access violation exception Pin
Django_Untaken3-Jul-16 11:18
MemberDjango_Untaken3-Jul-16 11:18 

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.