I´m writing a MDI aplication and I found that while trying to modify a Data Member I get an acces error during run time. For example I have my document class
class CMyDoc : CDocument
{
....
int m_nX;
void modify();
...
}
void modify()
{
m_nX = 10;
}
If I get the document object and I try to call to my function modify() then I get a message error. I´m a bit confused becouse the doesn´t happens in a SDI application. Thanks in advance.
Javi
class CMyDoc : CDocument
{
....
int m_nX;
void modify();
...
}
void modify()
{
m_nX = 10;
}
If I get the document object and I try to call to my function modify() then I get a message error. I´m a bit confused becouse the doesn´t happens in a SDI application. Thanks in advance.
Javi