dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Debug Assertion Failed Message: not yet solved

  1. #1
    Join Date
    Jun 1999
    Posts
    505

    Debug Assertion Failed Message: not yet solved

    Hi,
    I am getting a run time error in the following code. The error is occurring at the point where I am trying to add the page to property sheet.

    Can somebody help me with that?


    void CPropPageTextView::OnMenuMenuitem()
    {
    // TODO: Add your command handler code here
    CMainDlg dlgM(_T("Tabbed Options"), this);
    CColorDialog dlgC;
    CSizeDlg dlgS;
    CTextDlg dlgT;

    dlgM.AddPage((CPropertyPage*) &dlgC);
    dlgM.AddPage(&dlgS);
    dlgM.AddPage(&dlgT);

    dlgM.DoModal();
    }

    Zulfi.

  2. #2
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,116
    I am very curious as to why you are making the cast.....
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)