Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 28th, 2007, 05:49 AM
Registered User
 
Join Date: Aug 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Debug assertion failure for wincore

hi,
I am getting the error as shown below,I am not able to make out which handle is causing that.All other active x controls are working fine except for one tab control which holds other controls as tab.
bCreate = pWndOcx->CreateControl(
        /* CLSID */ clsid,
        /* title */ _T(""),
        /* dwStyle */ 1, // don't show window immediately with WS_VISIBLE,
        /* rect */ m_rcBounding,
        /* parent wnd */this,
        /* nID */ 1,
        /* pPersist */ NULL,
        /* bStorage */ false,
        /* bstrLicKey */ NULL);


    //CEG 02/03/98 - Check here to ensure that the hWnd for the control got
    // created. If not, we return FALSE.
    if((!bCreate)||(pWndOcx->m_hWnd == NULL) || !(::IsWindow(pWndOcx->m_hWnd)))
        return FALSE;


When i run this code it gives me this error
Debug assertion failed for wincore.cpp.it is failing in Attach function of wincore.cpp
Assert(m_hWnd)
Can u please help me to tell what is causing this error






Similar Threads
Thread Thread Starter Forum Replies Last Post
Programmer's assertion in getNextStepPos dishant XSLT 1 April 11th, 2008 09:48 AM
what is an assertion? coreyalbrightsr Java Basics 3 October 2nd, 2007 06:54 PM
Debug assertion about m_pCtrlSite attaboyu Visual C++ 10 November 14th, 2005 01:53 PM
"Debug Assertion Failure" elleetan Visual C++ 3 September 20th, 2005 06:25 AM
Help in Assertion failure abdelkader Visual C++ 0 December 30th, 2003 10:43 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.