Hi,
I have what it seems to be a very simple problem but that it's driving me crazy.
I made a SDI application (VC++ 6). When I created it the print preview was working fine, but now it doesn't.
The error seems to be in the GetDocument method, but I can't understand why, since I didn't change it...
The error occurs here:
CTriacDoc* CTriacView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CTriacDoc)));
return (CTriacDoc*)m_pDocument;
}
...after the draw has been plot.
I know that I don't give you a lot of clues, but if someone have any idea...
Thanks in advance
I have what it seems to be a very simple problem but that it's driving me crazy.
I made a SDI application (VC++ 6). When I created it the print preview was working fine, but now it doesn't.
The error seems to be in the GetDocument method, but I can't understand why, since I didn't change it...
The error occurs here:
CTriacDoc* CTriacView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CTriacDoc)));
return (CTriacDoc*)m_pDocument;
}
...after the draw has been plot.
I know that I don't give you a lot of clues, but if someone have any idea...
Thanks in advance