Print Page | Close Window

pCommandBars->LoadDesignerBars now fail in 11.2

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=8100
Printed Date: 13 November 2025 at 2:30pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: pCommandBars->LoadDesignerBars now fail in 11.2
Posted By: Ark42
Subject: pCommandBars->LoadDesignerBars now fail in 11.2
Date Posted: 20 September 2007 at 11:47am
    HRSRC hRsrs = FindResource(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDR_COMMANDBARS), _T("XCB"));
    ASSERT(hRsrs);

    if (hRsrs) {
        HGLOBAL hGlobal = LoadResource(AfxGetInstanceHandle(), hRsrs);

        if (hGlobal) {
            
            DWORD dwSize = SizeofResource(AfxGetInstanceHandle(), hRsrs);
            LPVOID pData = LockResource(hGlobal);
           
            CMemFile file((BYTE*)pData, dwSize);
            CArchive ar(&file, CArchive::load | CArchive::bNoFlushOnDelete);
           
            pCommandBars->LoadDesignerBars(ar);
        }
    }


worked in 11.1.3, but now causes ASSERT in 11.2
in CXTPToolBar::MergeToolBar
near the end of the function: ASSERT(m_pControls->m_pOriginalControls == NULL);




Replies:
Posted By: Oleg
Date Posted: 21 September 2007 at 1:04am
Hello,
 
Can you please attach this xcb file to test ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Ark42
Date Posted: 21 September 2007 at 1:16am
Sure, I'll put it in issuetrack thing



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net