<?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 : help me to solve excepti&#111;n error.</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : help me to solve excepti&#111;n error.]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 11:58:25 +0000</pubDate>
  <lastBuildDate>Thu, 20 Jan 2005 05:24:39 +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=1683</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[help me to solve excepti&#111;n error. : hello, thanks a lot. i didn&amp;#039;tuse...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1683&amp;PID=4788&amp;title=help-me-to-solve-exception-error#4788</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=951">vpas</a><br /><strong>Subject:</strong> 1683<br /><strong>Posted:</strong> 20 January 2005 at 5:24am<br /><br /><P>hello, thanks a lot.</P><P>i didn't&nbsp;use OnDestroy and use OnClose.</P><P>void CMainFrame::OnClose() <BR>{</P><P>// Save the current state for toolbars and menus.<BR>&nbsp;&nbsp;&nbsp; SaveCommandBars(_T("CommandBars"));</P><P>&nbsp;&nbsp;&nbsp; // Save the current state for docking panes.<BR>&nbsp;&nbsp;&nbsp; CXTPDockingPaneLayout layoutNormal(&amp;m_paneManager);<BR>&nbsp;&nbsp;&nbsp; m_paneManager.GetLayout(&amp;layoutNormal); <BR>&nbsp;&nbsp;&nbsp; layoutNormal.Save(_T("NormalLayout"));</P><P>&nbsp;CMDIFrameWnd::OnClose();</P><P>}</P><P>The main points may be summarized as follows.</P><P>int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) <BR>{<BR>&nbsp;&nbsp;&nbsp; // i use "pToolBar2" instead of "CXTPToolBar* pToolBar2" <BR>&nbsp;&nbsp;&nbsp; pToolBar2 = (CXTPToolBar*)pCommandBars-&gt;Add(_T("Standard2"), xtpBarTop);<BR>&nbsp;&nbsp;&nbsp; if (!pToolBar2 || !pToolBar2-&gt;LoadToolBar(IDR_TOOLBAR2))<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TRACE0("Failed to create toolbar2\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return -1;<BR>&nbsp;&nbsp;&nbsp; }<BR>}</P><P>so, before that,</P><P>class CMainFrame : public CXTPMDIFrameWnd<BR>{<BR>&nbsp;protected:&nbsp; <BR>&nbsp;&nbsp;CXTPToolBar* pToolBar2;&nbsp;&nbsp; // declaration.<BR>} <BR>and,</P><P>CMainFrame::CMainFrame()<BR>{<BR>&nbsp;pToolBar2 = NULL; <BR>}</P><P>used&nbsp;as above.</P><P>1. when using commonly "CXTPToolBar* pToolBar2" in OnCreate() and&nbsp;application end , error&nbsp;is not occur.<BR>2. But... <FONT color=#cc0000>when</FONT> using as above code and <FONT color=#cc0000>application end&nbsp;, <FONT color=#000000>error message&nbsp;</FONT>&nbsp;</FONT><FONT color=#000000>occured with debbuging window.<BR></FONT></P><span style="font-size:10px"><br /><br />Edited by vpas</span>]]>
   </description>
   <pubDate>Thu, 20 Jan 2005 05:24:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1683&amp;PID=4788&amp;title=help-me-to-solve-exception-error#4788</guid>
  </item> 
  <item>
   <title><![CDATA[help me to solve excepti&#111;n error. : It can happens if you Save State...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1683&amp;PID=4782&amp;title=help-me-to-solve-exception-error#4782</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1683<br /><strong>Posted:</strong> 20 January 2005 at 1:42am<br /><br /><P>It can happens if you Save State in OnDestroy instead of OnClose. </P><P>Show me how you save it.</P>]]>
   </description>
   <pubDate>Thu, 20 Jan 2005 01:42:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1683&amp;PID=4782&amp;title=help-me-to-solve-exception-error#4782</guid>
  </item> 
  <item>
   <title><![CDATA[help me to solve excepti&#111;n error. : hi , everyone. nice day. when...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1683&amp;PID=4777&amp;title=help-me-to-solve-exception-error#4777</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=951">vpas</a><br /><strong>Subject:</strong> 1683<br /><strong>Posted:</strong> 19 January 2005 at 9:41pm<br /><br /><P><FONT size=2>hi , everyone. nice day.</FONT></P><P><FONT size=2>when press the button of pane that i make to control toolbar, toolbar hide&nbsp;or show&nbsp;nicely.</FONT></P><P><FONT size=2>But...when&nbsp;the application close, occur&nbsp;exception error&nbsp;in dbgheap.c</FONT></P><P><FONT size=2>How i make.</FONT></P><P><FONT size=2>1. i make pane of dialog and make button to hide or show toolbar.</FONT></P><P><FONT size=2>&nbsp;CXTPToolBar* pToolBar2&nbsp;&nbsp;&nbsp; &lt;= CMainFrm.h declaration<BR>&nbsp; pToolBar2 = NULL;&nbsp; </FONT></P><P><FONT size=2>2. add in CMainFrame::OnCreate</FONT></P><P><FONT size=2>&nbsp;pToolBar2 = (CXTPToolBar*)pCommandBars-&gt;Add(_T("Standard2"), xtpBarTop);</FONT></P><P><FONT size=2>// .... //</FONT></P><P><FONT size=2>3. int CMainFrame::ValidToolBar(void)<BR>{<BR>&nbsp;&nbsp;&nbsp;&nbsp; if(pToolBar2-&gt;IsVisible()) <BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;pToolBar2-&gt;SetVisible(FALSE);&nbsp;AfxMessageBox(" hide toolbar2~ ^^ ");<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; else&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;{ <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pToolBar2-&gt;SetVisible(TRUE); AfxMessageBox(" show toolbar2~ ^^ ");<BR>&nbsp;&nbsp;&nbsp; }</FONT></P><P><FONT size=2>&nbsp;return 0;<BR>}</FONT></P><P><FONT size=2>4. button of pane that i make.</FONT></P><P><FONT size=2>void CNavigationView::OnBnClickedOk()<BR>{<BR>&nbsp;CMainFrame *pMainFrame = (CMainFrame *)AfxGetMainWnd();</FONT></P><P><FONT size=2>&nbsp;pMainFrame-&gt;ValidToolBar();<BR>}</FONT></P><P><FONT size=2>i have hardly been try to solve, but i dont know.</FONT></P><P><FONT size=2>if&nbsp;did you want&nbsp;source, i&nbsp;&nbsp;would&nbsp;send. leave email. </FONT></P><P><FONT size=2>Um... i used .Net C++&nbsp;in&nbsp;Win 2000.</FONT></P><P><FONT size=2>why occur exception error? Um... help me.</FONT></P><span style="font-size:10px"><br /><br />Edited by vpas</span>]]>
   </description>
   <pubDate>Wed, 19 Jan 2005 21:41:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1683&amp;PID=4777&amp;title=help-me-to-solve-exception-error#4777</guid>
  </item> 
 </channel>
</rss>