Click here to Skip to main content
16,005,236 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: serializing issue Pin
27-Jun-02 4:16
suss27-Jun-02 4:16 
GeneralRe: serializing issue Pin
Joaquín M López Muñoz27-Jun-02 4:20
Joaquín M López Muñoz27-Jun-02 4:20 
GeneralRe: serializing issue Pin
jbarton27-Jun-02 5:27
jbarton27-Jun-02 5:27 
GeneralRe: serializing issue Pin
Joaquín M López Muñoz27-Jun-02 6:15
Joaquín M López Muñoz27-Jun-02 6:15 
GeneralRe: serializing issue Pin
jbarton27-Jun-02 7:10
jbarton27-Jun-02 7:10 
GeneralRe: serializing issue Pin
Joaquín M López Muñoz27-Jun-02 8:59
Joaquín M López Muñoz27-Jun-02 8:59 
GeneralRe: serializing issue Pin
Mike Ellertson3-Aug-03 19:35
sussMike Ellertson3-Aug-03 19:35 
GeneralRe: serializing issue Pin
jbarton4-Aug-03 2:35
jbarton4-Aug-03 2:35 
Hi Mike,

You shouldn't derive from a CArray - it is not designed to be a base class (it does not have a virtual destructor).

Instead, you can make the CArray into a member of your CFormList class

<br />
class AFX_EXT_CLASS CFormList : public CObject<br />
   {<br />
   DECLARE_SERIAL(CFormList);<br />
<br />
   public:<br />
      void Serialize( CArchive& ar )<br />
         {<br />
         CObject::Serialize( ar );<br />
         m_Array.Serialize( ar );<br />
         }<br />
<br />
   private:<br />
      CArray<CString,CString&> m_Array;<br />
   };<br />
<br />
IMPLEMENT_SERIAL( CFormList, CObject, 1 );<br />


Best regards,
John
GeneralRe: serializing issue Pin
Mikey_E5-Aug-03 7:08
professionalMikey_E5-Aug-03 7:08 
GeneralRe: serializing issue Pin
jbarton5-Aug-03 7:36
jbarton5-Aug-03 7:36 
GeneralRe: serializing issue Pin
Joaquín M López Muñoz27-Jun-02 9:02
Joaquín M López Muñoz27-Jun-02 9:02 
Questionwhats the difference between these three? Pin
27-Jun-02 3:54
suss27-Jun-02 3:54 
AnswerRe: whats the difference between these three? Pin
Chris Losinger27-Jun-02 5:54
professionalChris Losinger27-Jun-02 5:54 
AnswerRe: whats the difference between these three? Pin
Scott H. Settlemier27-Jun-02 8:16
Scott H. Settlemier27-Jun-02 8:16 
GeneralMore info (wierd !!) Pin
Still learning how to code27-Jun-02 2:55
Still learning how to code27-Jun-02 2:55 
GeneralRe: More info (wierd !!) Pin
Still learning how to code27-Jun-02 2:58
Still learning how to code27-Jun-02 2:58 
GeneralEject of PCMCIA card Pin
Josef Schroettle27-Jun-02 2:06
Josef Schroettle27-Jun-02 2:06 
GeneralProblem with creating a toolbar in a DLL Pin
Mohit Khanna27-Jun-02 1:55
Mohit Khanna27-Jun-02 1:55 
GeneralRe: Problem with creating a toolbar in a DLL Pin
Roger Allen27-Jun-02 3:43
Roger Allen27-Jun-02 3:43 
GeneralRe: Problem with creating a toolbar in a DLL Pin
Mohit Khanna27-Jun-02 22:56
Mohit Khanna27-Jun-02 22:56 
GeneralRe: Problem with creating a toolbar in a DLL Pin
Roger Allen27-Jun-02 23:08
Roger Allen27-Jun-02 23:08 
GeneralRe: Problem with creating a toolbar in a DLL Pin
Mohit Khanna27-Jun-02 23:34
Mohit Khanna27-Jun-02 23:34 
GeneralRe: Problem with creating a toolbar in a DLL Pin
Roger Allen28-Jun-02 0:21
Roger Allen28-Jun-02 0:21 
GeneralRe: Problem with creating a toolbar in a DLL Pin
Mohit Khanna28-Jun-02 0:50
Mohit Khanna28-Jun-02 0:50 
Generalconnecting to a remote database Pin
Sam197927-Jun-02 1:50
Sam197927-Jun-02 1:50 

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.