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:
    http://neomaoist.prophpbb.com
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice