<?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 : Cannot load CXTPMenuBar from archive</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Cannot load CXTPMenuBar from archive]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 16 Apr 2026 16:57:14 +0000</pubDate>
  <lastBuildDate>Wed, 14 Jun 2006 06:21:47 +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=4277</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[Cannot load CXTPMenuBar from archive : Hi, bigeyes, I think i have the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4277&amp;PID=13622&amp;title=cannot-load-cxtpmenubar-from-archive#13622</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2097">gfzhang8</a><br /><strong>Subject:</strong> 4277<br /><strong>Posted:</strong> 14 June 2006 at 6:21am<br /><br /><P>Hi, bigeyes,</P><P>I think i have the same problem with you.</P><P>I can not load a derived class from the archive in vc.net 2003, windows XP.</P><P>Would you tell&nbsp;something about&nbsp;how did you solved your problem?</P><P>Best regards!</P><P>&nbsp;</P><P>gfzhang</P>]]>
   </description>
   <pubDate>Wed, 14 Jun 2006 06:21:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4277&amp;PID=13622&amp;title=cannot-load-cxtpmenubar-from-archive#13622</guid>
  </item> 
  <item>
   <title><![CDATA[Cannot load CXTPMenuBar from archive : Problem solved.Thank you. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4277&amp;PID=13229&amp;title=cannot-load-cxtpmenubar-from-archive#13229</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2040">bigeyes</a><br /><strong>Subject:</strong> 4277<br /><strong>Posted:</strong> 29 May 2006 at 11:28pm<br /><br />Problem solved.Thank you.]]>
   </description>
   <pubDate>Mon, 29 May 2006 23:28:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4277&amp;PID=13229&amp;title=cannot-load-cxtpmenubar-from-archive#13229</guid>
  </item> 
  <item>
   <title><![CDATA[Cannot load CXTPMenuBar from archive : Hi Try to link ToolkitPro staitically......]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4277&amp;PID=13145&amp;title=cannot-load-cxtpmenubar-from-archive#13145</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4277<br /><strong>Posted:</strong> 25 May 2006 at 12:31pm<br /><br /><P>Hi</P><P>Try to link ToolkitPro staitically... It can't find CXTPMenuBar dynamic class.</P>]]>
   </description>
   <pubDate>Thu, 25 May 2006 12:31:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4277&amp;PID=13145&amp;title=cannot-load-cxtpmenubar-from-archive#13145</guid>
  </item> 
  <item>
   <title><![CDATA[Cannot load CXTPMenuBar from archive : Xtreme Toolkit Pro v9.60, VC6...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4277&amp;PID=13139&amp;title=cannot-load-cxtpmenubar-from-archive#13139</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2040">bigeyes</a><br /><strong>Subject:</strong> 4277<br /><strong>Posted:</strong> 24 May 2006 at 11:29pm<br /><br /><P>Xtreme Toolkit Pro v9.60,&nbsp;&nbsp; VC6 ,&nbsp;&nbsp; win2000</P><P>I write an activex,import the xcb file to the resource,use LoadDesignerBars ,but there are exceptions.</P><P>xcb file is OK,i can load the file in another&nbsp;winapp project.</P><P>error info:</P><P>Warning: Cannot load CXTPMenuBar from archive.&nbsp; Class not defined.<BR>CArchive exception: badClass.<BR>CXTPCommandBars::LoadCommandBarList. Archive exception</P><P>related code:</P><P><table width="99%"><tr><td><pre class="BBcode"></P><P>int WSDIFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) <BR>{<BR>&nbsp;if (CFrameWnd::OnCreate(lpCreateStruct) == -1)<BR>&nbsp;&nbsp;return -1;</P><P>&nbsp;if (!InitCommandBars())<BR>&nbsp;{<BR>&nbsp;&nbsp;return -1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // fail to create<BR>&nbsp;}</P><P>&nbsp;return 0;<BR>}</P><P>BOOL WSDIFrame::LoadFrame(UINT nIDResource, DWORD dwDefaultStyle, CWnd* pParentWnd, CCreateContext* pContext)<BR>{<BR>&nbsp;if (!CFrameWnd::LoadFrame(nIDResource, dwDefaultStyle, pParentWnd, pContext))<BR>&nbsp;&nbsp;return FALSE;</P><P>&nbsp;GenerateCommandBars();</P><P>&nbsp;return TRUE;<BR>}</P><P>void WSDIFrame::GenerateCommandBars()<BR>{<BR>&nbsp;CXTPCommandBars* pCommandBars = GetCommandBars();<BR>&nbsp;pCommandBars-&gt;SetMenu(_T("Menu Bar"), IDR_WHITEBOARD);</P><P>&nbsp;HRSRC hRsrs = FindResource(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDR_FORM2), "RT_RCDATA");<BR>&nbsp;ASSERT(hRsrs);</P><P>&nbsp;if (hRsrs)<BR>&nbsp;{<BR>&nbsp;&nbsp;HGLOBAL hGlobal = LoadResource(AfxGetInstanceHandle(), hRsrs);</P><P>&nbsp;&nbsp;if (hGlobal)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;DWORD dwSize = SizeofResource(AfxGetInstanceHandle(), hRsrs);<BR>&nbsp;&nbsp;&nbsp;LPVOID pData = LockResource(hGlobal);</P><P>&nbsp;&nbsp;&nbsp;CMemFile file((BYTE*)pData, dwSize);<BR>&nbsp;&nbsp;&nbsp;CArchive ar(&amp;file, CArchive::load | CArchive::bNoFlushOnDelete);<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp;// I checked here,CMemFile file has the same content as the input form2.xcb file.<BR>&nbsp;&nbsp;&nbsp;// so, the input of LoadDesignerBars should be OK<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;pCommandBars-&gt;LoadDesignerBars(ar);<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;//but there are some exception here.<BR>&nbsp;&nbsp;&nbsp;//debug info<BR>&nbsp;&nbsp;&nbsp;//&nbsp;&nbsp;Warning: Cannot load CXTPMenuBar from archive.&nbsp; Class not defined.<BR>&nbsp;&nbsp;&nbsp;//&nbsp;&nbsp;CArchive exception: badClass.<BR>&nbsp;&nbsp;&nbsp;//&nbsp;&nbsp;CXTPCommandBars::LoadCommand BarList. Archive exception&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;}<BR>&nbsp;}<BR>}</P><P>BOOL WSDIFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) <BR>{<BR>&nbsp;//create some client panes<BR>&nbsp;//.....</P><P>&nbsp;return TRUE;<BR>}</P><P>BOOL WSDIFrame::PreCreateWindow(CREATESTRUCT&amp; cs) <BR>{<BR>&nbsp;if(!CFrameWnd::PreCreateWindow(cs))<BR>&nbsp;&nbsp;return FALSE;</P><P>&nbsp;cs.dwExStyle &amp;= ~WS_EX_CLIENTEDGE;<BR>&nbsp;cs.dwExStyle&nbsp; &amp;=~WS_EX_WINDOWEDGE;<BR>&nbsp;cs.dwExStyle &amp;=~WS_EX_DLGMODALFRAME;<BR>&nbsp;return TRUE;</P><P>}</P><P><BR>//class WSDITemplate : public CSingleDocTemplate&nbsp; <BR>//here is how the WSDIFrame was created<BR>CFrameWnd* WSDITemplate::CreateNewFrame(CDocument* pDoc,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CFrameWnd* pOther)<BR>{<BR>&nbsp;&nbsp;// here m_pFramClass == "WSDIFrame"<BR>&nbsp;&nbsp;&nbsp; m_pFrameWnd = (CFrameWnd*)m_pFrameClass-&gt;CreateObject();<BR>&nbsp;&nbsp;m_pFrameWnd-&gt;LoadFrame(IDR_WHITEBOARD,WS_CHIL D|WS_VISIBLE,m_pParentWnd,&amp;context)) <BR>}</P><P>&nbsp;</P><P>//class CWCSWhiteBoardCtrl : public WSDIControl<BR>//class WSDIControl : public COleControl<BR>//here is how the WSDITemplate was created<BR>CWCSWhiteBoardCtrl::CWCSWhiteBoardCtrl()<BR>{</P><P>&nbsp;InitializeIIDs(&amp;IID_DWCSWhiteBoard, &amp;IID_DWCSWhiteBoardEvents);<BR>&nbsp;&nbsp;&nbsp; SetInitialSize(200, 200);</P><P>&nbsp;WSDITemplate* temp=new WSDITemplate(<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RUNTIME_CLASS(WSDIDoc),<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RUNTIME_CLASS(WSDIFrame),<BR>&nbsp;&nbsp;RUNTIME_CLASS(WSDIView));<BR>&nbsp;temp-&gt;SetContainerInfo(IDR_WHITEBOARD);<BR>&nbsp; AddDocTemplate(temp);<BR>}</P><P></pre></td></tr></table></P>]]>
   </description>
   <pubDate>Wed, 24 May 2006 23:29:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4277&amp;PID=13139&amp;title=cannot-load-cxtpmenubar-from-archive#13139</guid>
  </item> 
 </channel>
</rss>