<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Designer (.XCB) problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Designer (.XCB) problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 03:29:13 +0000</pubDate>
  <lastBuildDate>Tue, 06 Oct 2009 11:53:03 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=15305</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Designer (.XCB) problem : I have an XCB file containing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15305&amp;PID=53653&amp;title=designer-xcb-problem#53653</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3717">Smucker</a><br /><strong>Subject:</strong> 15305<br /><strong>Posted:</strong> 06 October 2009 at 11:53am<br /><br />I have an XCB file containing several toolbars, main menu, and contextmenus. I have spent a lot of time on it, and it works fine the way itis, but I'm unable to make <i><b>any </b></i>changes to it.<br><br>Loading it in Command Bar Designer and making <b>any</b> change (evenjust switching to XML view and back), and then saving, result in allicons and some toolbars missing when I load in the program;additionally, the Customize option becomes inoperable.<br><br>Exporting to XML and then importing results in completely empty toolbars and menus.<br><br>I have linked to a zip that includes the original XCB (and as exportedto XML), and modified XCB and XML (though the "modification" was onlyto switch to XML view and back. (I got an Access Denied trying to attach it, even though I'm logged in.)<br><br><a href="http://www.cerious.com/binaries/cerious/cjxcb.zip" target="_blank">http://www.cerious.com/binaries/cerious/cjxcb.zip</a><br><br>I'm using the Command Bars Designer 13.1.0.0 dated 7/24/2009, which I believe is an update to fix problems with XML &gt; 1MB.<br><br>Here is the code I'm using to load it (from a resource in the EXE).<br><br>void CMainFrame::GenerateCommandBars()<br><font face="Courier New, Courier, mono">{<br>&nbsp;&nbsp;&nbsp; CXTPCommandBars* pCommandBars = GetCommandBars();<br>&nbsp;&nbsp;&nbsp; pCommandBars-&gt;SetMenu(_T("Menu Bar"), 0);<br><br>&nbsp;&nbsp;&nbsp; HRSRC hRsrs = FindResource(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDR_COMMANDBARS), _T("RT_RCDATA"));<br>&nbsp;&nbsp;&nbsp; ASSERT(hRsrs);<br>&nbsp;&nbsp;&nbsp; if (hRsrs) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; HGLOBAL hGlobal = LoadResource(AfxGetInstanceHandle(), hRsrs);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (hGlobal) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DWORD dwSize = SizeofResource(AfxGetInstanceHandle(), hRsrs);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; LPVOID pData = LockResource(hGlobal);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CMemFile file((BYTE*)pData, dwSize);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CArchive ar(&amp;file, CArchive::load | CArchive::bNoFlushOnDelete);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pCommandBars-&gt;LoadDesignerBars(ar);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br>}</font><br><br>Please help me find what's wrong!<br><br>Thanks,<br>Phillip<br><br>]]>
   </description>
   <pubDate>Tue, 06 Oct 2009 11:53:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15305&amp;PID=53653&amp;title=designer-xcb-problem#53653</guid>
  </item> 
 </channel>
</rss>