Click here to Skip to main content
15,917,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionclistctrl question? Pin
jafrazee1-Apr-02 8:16
jafrazee1-Apr-02 8:16 
AnswerRe: clistctrl question? Pin
jafrazee1-Apr-02 9:17
jafrazee1-Apr-02 9:17 
QuestionCommand line parser for ATL or WTL? Pin
Todd Smith1-Apr-02 8:08
Todd Smith1-Apr-02 8:08 
AnswerRe: Command line parser for ATL or WTL? Pin
Tim Smith1-Apr-02 8:14
Tim Smith1-Apr-02 8:14 
AnswerRe: Command line parser for ATL or WTL? Pin
Chris Losinger1-Apr-02 8:22
professionalChris Losinger1-Apr-02 8:22 
GeneralRe: Command line parser for ATL or WTL? Pin
Todd Smith1-Apr-02 9:29
Todd Smith1-Apr-02 9:29 
GeneralIMPORTANT !!! READ THIS !!!! Pin
1-Apr-02 7:23
suss1-Apr-02 7:23 
GeneralRe: IMPORTANT !!! READ THIS !!!! Pin
dazinith1-Apr-02 8:01
dazinith1-Apr-02 8:01 
GeneralRe: IMPORTANT !!! READ THIS !!!! Pin
Nish Nishant1-Apr-02 8:13
sitebuilderNish Nishant1-Apr-02 8:13 
GeneralRe: IMPORTANT !!! READ THIS !!!! Pin
Philip Patrick1-Apr-02 11:59
professionalPhilip Patrick1-Apr-02 11:59 
GeneralRe: IMPORTANT !!! READ THIS !!!! Pin
Christian Graus1-Apr-02 11:14
protectorChristian Graus1-Apr-02 11:14 
GeneralRe: IMPORTANT !!! READ THIS !!!! Pin
Shog91-Apr-02 13:12
sitebuilderShog91-Apr-02 13:12 
GeneralATL dll locks in memory Pin
Gerosa1-Apr-02 7:17
Gerosa1-Apr-02 7:17 
GeneralRe: ATL dll locks in memory Pin
Joaquín M López Muñoz1-Apr-02 10:10
Joaquín M López Muñoz1-Apr-02 10:10 
GeneralRe: ATL dll locks in memory Pin
Bill Wilson1-Apr-02 12:42
Bill Wilson1-Apr-02 12:42 
GeneralRe: ATL dll locks in memory Pin
Michael Dunn1-Apr-02 16:46
sitebuilderMichael Dunn1-Apr-02 16:46 
GeneralIMPLEMENT_SERIAL and versions Pin
dazinith1-Apr-02 6:49
dazinith1-Apr-02 6:49 
GeneralRe: IMPLEMENT_SERIAL and versions Pin
dazinith1-Apr-02 8:21
dazinith1-Apr-02 8:21 
GeneralRe: IMPLEMENT_SERIAL and versions Pin
Ravi Bhavnani1-Apr-02 10:40
professionalRavi Bhavnani1-Apr-02 10:40 
GeneralRe: IMPLEMENT_SERIAL and versions Pin
Ted Christiansen17-Apr-02 8:36
Ted Christiansen17-Apr-02 8:36 
dazinth,

I just had a similar problem. When you use CArray<cmyobj, cmyobj&=""> then you need to override SerializeElements (see MSDN). My solution was to store and load the version right before the elements were serialized and then set the object schema member variable as each element was serialized. Hope this helps.

Ted

//////////////////////////////////////////////////////////////////////
// Serialize the FEVface
// necessary because CArray does not provide this function itself
//////////////////////////////////////////////////////////////////////
template <> void AFXAPI SerializeElements <cmyobj> ( CArchive& ar, CMYobj* pNew, int nCount )
{
UINT version;

if (ar.IsLoading() == TRUE) {
ar >> version;
}
else {
ar << CONST_CURVERSION;
}

for ( int i = 0; i < nCount; i++, pNew++ ) {
ar.m_nObjectSchema = version;
pNew->Serialize( ar );
}
}Smile | :)
GeneralRe: IMPLEMENT_SERIAL and versions Pin
melwyn18-Jun-02 4:45
melwyn18-Jun-02 4:45 
GeneralREAL office XP menu look-alike Pin
Jon Newman1-Apr-02 6:40
Jon Newman1-Apr-02 6:40 
GeneralRe: REAL office XP menu look-alike Pin
MaTrIX2k21-Apr-02 6:49
MaTrIX2k21-Apr-02 6:49 
GeneralRe: REAL office XP menu look-alike Pin
Ramon Casellas1-Apr-02 7:01
Ramon Casellas1-Apr-02 7:01 
GeneralAssociate the file types to application Pin
George Anescu1-Apr-02 5:56
George Anescu1-Apr-02 5:56 

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.