Click here to Skip to main content
15,888,202 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSerialization of enumerated types Pin
bob1697226-Sep-07 5:05
bob1697226-Sep-07 5:05 
AnswerRe: Serialization of enumerated types Pin
Chris Losinger26-Sep-07 5:06
professionalChris Losinger26-Sep-07 5:06 
GeneralRe: Serialization of enumerated types Pin
bob1697226-Sep-07 8:07
bob1697226-Sep-07 8:07 
GeneralRe: Serialization of enumerated types Pin
Chris Losinger26-Sep-07 8:14
professionalChris Losinger26-Sep-07 8:14 
GeneralRe: Serialization of enumerated types Pin
bob1697226-Sep-07 8:36
bob1697226-Sep-07 8:36 
QuestionRe: Serialization of enumerated types Pin
David Crow26-Sep-07 6:02
David Crow26-Sep-07 6:02 
AnswerRe: Serialization of enumerated types Pin
bob1697226-Sep-07 8:05
bob1697226-Sep-07 8:05 
GeneralRe: Serialization of enumerated types Pin
David Crow26-Sep-07 8:28
David Crow26-Sep-07 8:28 
bob16972 wrote:
...if that's working for you in your environment, I'll give it try in a Visual C++ 6.0 project...


You might have to tweak it a bit like:

if (ar.IsStoring())
{
    int x = SomeType;
    ar << x;
}
else
{
    int x;
    ar >> x;
    SomeType = (_SomeType) x;
}



"A good athlete is the result of a good and worthy opponent." - David Crow

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


GeneralRe: Serialization of enumerated types Pin
bob1697226-Sep-07 8:37
bob1697226-Sep-07 8:37 
QuestionRe: Serialization of enumerated types Pin
Nelek26-Sep-07 20:16
protectorNelek26-Sep-07 20:16 
AnswerRe: Serialization of enumerated types Pin
David Crow27-Sep-07 2:27
David Crow27-Sep-07 2:27 
GeneralRe: Serialization of enumerated types Pin
Nelek27-Sep-07 3:10
protectorNelek27-Sep-07 3:10 
QuestionLVN_ONITEMCHANGING Pin
paper6726-Sep-07 4:54
paper6726-Sep-07 4:54 
AnswerRe: LVN_ONITEMCHANGING Pin
Nelek26-Sep-07 5:37
protectorNelek26-Sep-07 5:37 
AnswerRe: LVN_ONITEMCHANGING Pin
Mark Salsbery26-Sep-07 5:46
Mark Salsbery26-Sep-07 5:46 
GeneralRe: LVN_ONITEMCHANGING Pin
paper6726-Sep-07 6:36
paper6726-Sep-07 6:36 
QuestionRe: LVN_ONITEMCHANGING Pin
Mark Salsbery26-Sep-07 7:12
Mark Salsbery26-Sep-07 7:12 
AnswerRe: LVN_ONITEMCHANGING Pin
paper6726-Sep-07 7:44
paper6726-Sep-07 7:44 
GeneralRe: LVN_ONITEMCHANGING Pin
Mark Salsbery26-Sep-07 8:05
Mark Salsbery26-Sep-07 8:05 
QuestionRe: LVN_ONITEMCHANGING Pin
Nelek26-Sep-07 20:25
protectorNelek26-Sep-07 20:25 
Questionoperator delete Pin
Waldermort26-Sep-07 4:13
Waldermort26-Sep-07 4:13 
AnswerRe: operator delete Pin
Maximilien26-Sep-07 4:25
Maximilien26-Sep-07 4:25 
AnswerRe: operator delete [modified] Pin
Randor 26-Sep-07 5:26
professional Randor 26-Sep-07 5:26 
GeneralRe: operator delete Pin
Waldermort26-Sep-07 6:23
Waldermort26-Sep-07 6:23 
Questionsyatem level Hooks related issue Pin
Sharad Goyal26-Sep-07 4:00
Sharad Goyal26-Sep-07 4:00 

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.