Click here to Skip to main content
15,911,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Using STL in ATL Pin
Tony Li7-Jun-00 12:07
Tony Li7-Jun-00 12:07 
GeneralRe: Using STL in ATL Pin
Alex Gorev8-Jun-00 8:16
Alex Gorev8-Jun-00 8:16 
GeneralAccess replication/synchronization using CDaoDatabase Pin
W Dicks7-Jun-00 7:28
W Dicks7-Jun-00 7:28 
GeneralLPARAM associated data in TVITEM in TreeCtrl Pin
Member 103121487-Jun-00 6:25
Member 103121487-Jun-00 6:25 
GeneralRe: LPARAM associated data in TVITEM in TreeCtrl Pin
Uwe Keim7-Jun-00 10:45
sitebuilderUwe Keim7-Jun-00 10:45 
GeneralRe: LPARAM associated data in TVITEM in TreeCtrl Pin
michael7-Jun-00 14:52
michael7-Jun-00 14:52 
GeneralRe: LPARAM associated data in TVITEM in TreeCtrl Pin
michael8-Jun-00 2:20
michael8-Jun-00 2:20 
GeneralProblems serializing data structures (2) Pin
JCpp6-Jun-00 22:24
JCpp6-Jun-00 22:24 
First of all excuse my english... (I'm just a begginer)

I've posted a question about serializing Data structures and I have followed the instructions of the scribble sample, but I get an error when loading data from disk.

My data structures are these ones:

struct STRCTxDATA { this struct contains BOOL, int, HANDLE, DCB, CString, COMMTIMEOUTS, UINT... };

struct STRCTxTEXT { This struct contains only CStrings... };

struct WRKSTRCTS // To ensure that the two structures are linked...
{
STRCTxDATA *WRKSTRCTDADES;
STRCTxTEXT *WRKSTRCTDESCRIPCIONS;
};


Now I would like to save/load those structures... (they are used to create a configuration file for the communication devices)

NOTE: those structures are placed in a CArray.

void CGenCFGDoc::Serialize(CArchive& ar)
{
int iItemCounter = 0;
char chSeparator = '\0';

m_bModified = FALSE;

if (ar.IsStoring())
{
ar << ArrayxCFG.GetUpperBound() + 1;
ar << chSeparator;
}
else
{
ar >> iItemCounter;
ar >> chSeparator;
}

ArrayxCFG.Serialize(ar);

TRACE ("\nSERIALIZATION RESULTS:\n----------------------\n# Items: %i\n",iItemCounter);

for (int iCounter = 0; iCounter <= ArrayxCFG.GetUpperBound(); iCounter++)
{
TRACE("%s\n",ArrayxCFG[iCounter].WRKSTRCTDADES->csCadDCB); // <<-- Here I got the error.
}
}

Could you help me?

Thank you in advance...
QuestionHow to display Video in a Window? Pin
RickL6-Jun-00 19:41
RickL6-Jun-00 19:41 
AnswerRe: How to display Video in a Window? Pin
Amit B7-Jun-00 19:00
Amit B7-Jun-00 19:00 
AnswerRe: How to display Video in a Window? Pin
9-May-01 2:09
suss9-May-01 2:09 
QuestionCRichEdit without OLE capabilities? Pin
JCpp6-Jun-00 11:58
JCpp6-Jun-00 11:58 
AnswerRe: CRichEdit without OLE capabilities? Pin
Ben Key7-Jun-00 10:39
Ben Key7-Jun-00 10:39 
GeneralSizing Child Window Pin
Joseph6-Jun-00 8:36
Joseph6-Jun-00 8:36 
GeneralRe: Sizing Child Window Pin
Sam Hobbs7-Jun-00 13:10
Sam Hobbs7-Jun-00 13:10 
GeneralRe: Sizing Child Window Pin
Joseph8-Jun-00 3:18
Joseph8-Jun-00 3:18 
GeneralRe: Sizing Child Window Pin
Sam Hobbs8-Jun-00 9:44
Sam Hobbs8-Jun-00 9:44 
GeneralPalm PC Keyboard Pin
Joe O'Connor6-Jun-00 8:11
Joe O'Connor6-Jun-00 8:11 
GeneralRe: Palm PC Keyboard Pin
Chris Maunder7-Jun-00 2:14
cofounderChris Maunder7-Jun-00 2:14 
GeneralRe: Palm PC Keyboard Pin
Joe O'Connor7-Jun-00 8:17
Joe O'Connor7-Jun-00 8:17 
QuestionSelect a line under any column in a CListCtrl ??? Pin
Luc Bergeron6-Jun-00 5:31
Luc Bergeron6-Jun-00 5:31 
AnswerRe: Select a line under any column in a CListCtrl ??? Pin
Mike Dunn6-Jun-00 8:08
Mike Dunn6-Jun-00 8:08 
GeneralBeginner needs help with sorting objects in a CTypedPtrArray Pin
Matthias6-Jun-00 4:01
Matthias6-Jun-00 4:01 
GeneralRe: Beginner needs help with sorting objects in a CTypedPtrArray Pin
Member 43216-Jun-00 5:45
Member 43216-Jun-00 5:45 
GeneralListView dropdown Pin
Joe Bogner6-Jun-00 3:31
sussJoe Bogner6-Jun-00 3:31 

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.