assert error????

Discussion in 'MFC' started by darshini, Mar 1, 2008.

  1. darshini

    darshini New Member

    Joined:
    Mar 1, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    How to solve "Debug Assertion Failled!!!!!!!" error???

    in my project,till now i have made some dialogs n all those working properly.....but now in any event,if i wanna display any dialog than its giving assertion failure...
    error in MFC file.......File F:\rtm\vcTools\vc7libs\ship\atmfc\src\mfc\winocc.cpp file...

    where actuly this path is not existing in my system........
    But when i debug this error than it shows the winocc.cpp file.........

    there is error in its code....

    BOOL CWnd::EnableWindow(BOOL bEnable)
    {
    --->error____ ASSERT:):IsWindow(m_hWnd)||(m_pCtrlSite!=NULL));

    if(m_pCtrlSite==NULL)
    return ::EnableWindow(m_hWnd,bEnable);
    else
    return m_pCtrlSite->EnableWindow(bEnable);
    }


    Guide me..how to solve this error????????
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Your m_hWnd is not created and so you are getting an ASSERT
     
  3. soul2soull

    soul2soull New Member

    Joined:
    Mar 7, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    this fis is very simple u MUST instalk nvidia physx even u don't have an nvidia video card
     

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