Hello everybody...
I just learned that the GetActiveDocument function returns the active document on an MDI app in VC++.
This is my code
CUnoDoc* pDoc=(CUnoDoc*)GetActiveDocument();
MessageBox(pDoc->GetTitle());
When it gets to the part where it gets the title it sends me an assetion error. Like if no document would exist!
Can anyone help me?
Thank you




Reply With Quote