I have made a class derived from CDialogBar.

The DialogBar itself is created in the OnCreate

method of the CFrameWnd class.

The dialogbar includes several buttons and edit-boxes.

Now I wanted to pass a integer-value from the DialogBar

to the Document-class like this:


CMyDoc *m_doc = (CMyDoc *)GetParent();

m_doc->value_in_document_class= 10;


With this pointer to the document class it is possible to

call methods of it, but if a value should be passed the

following assertion-error occurs in "barcore.cpp"


ASSERT(m_nCount == 0 || m_pData != NULL);


In my case the m_pData value is NULL.


Does anyone know a sollution for this problem.