|
-
March 31st, 1999, 10:28 AM
#1
Accessing CDucument from CDialogBar
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|