Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print Preview problem

Status
Not open for further replies.

Triac

Technical User
Jan 29, 2002
20
IT
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top