1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

trouble with CFormView print preview?an answer.

Discussion in 'MFC' started by praxisist, Jun 13, 2008.

  1. praxisist

    praxisist New Member

    Joined:
    May 7, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    通过社会主义实现自由Freedom through Soci
    Location:
    中国共产党人党
    Home Page:
    Unhandled exception at 0x0041789f in ARIA.exe: 0xC0000005: Access
    violation..

    Myexe!COccManager::PreCreateDialog(_AFX_OCC_DIALOG_INFO * pDlgInfo=0x0012f894, const DLGTEMPLATE * pOrigTemplate=0x00000000) 行158 + 0x3 ...


    answer:Add AFXPRINT.RC's content to you rc.

    ...
    void CMyView::OnFilePrintPreview()
    {
    CFormView::OnFilePrintPreview( );
    }
     

Share This Page