<?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 : First-chance exception in &lt;program.exe&gt; (Comctl32.</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : First-chance exception in &lt;program.exe&gt; (Comctl32.]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 09:20:30 +0000</pubDate>
  <lastBuildDate>Mon, 17 Sep 2007 06:31:21 +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=8004</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[First-chance exception in &lt;program.exe&gt; (Comctl32. : That&amp;#039;s right. But it would...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8004&amp;PID=26006&amp;title=firstchance-exception-in-program-exe-comctl32#26006</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3301">Michl</a><br /><strong>Subject:</strong> 8004<br /><strong>Posted:</strong> 17 September 2007 at 6:31am<br /><br />That's right.<DIV>But it would be nice if no exception is raised and it is possible to suppress the exception. So the exception don't confuse for someone who don't know about this problem (as I before).</DIV><DIV>&nbsp;</DIV><DIV>Michael</DIV>]]>
   </description>
   <pubDate>Mon, 17 Sep 2007 06:31:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8004&amp;PID=26006&amp;title=firstchance-exception-in-program-exe-comctl32#26006</guid>
  </item> 
  <item>
   <title><![CDATA[First-chance exception in &lt;program.exe&gt; (Comctl32. : Hello, Its not serios problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8004&amp;PID=25899&amp;title=firstchance-exception-in-program-exe-comctl32#25899</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8004<br /><strong>Posted:</strong> 15 September 2007 at 1:12am<br /><br /><DIV>Hello,</DIV><DIV>Its not serios problem and it appears for each PropetySheet dialog, You can ignore it.</DIV>]]>
   </description>
   <pubDate>Sat, 15 Sep 2007 01:12:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8004&amp;PID=25899&amp;title=firstchance-exception-in-program-exe-comctl32#25899</guid>
  </item> 
  <item>
   <title><![CDATA[First-chance exception in &lt;program.exe&gt; (Comctl32. : Hi XTPprogramers If I select...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8004&amp;PID=25859&amp;title=firstchance-exception-in-program-exe-comctl32#25859</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3301">Michl</a><br /><strong>Subject:</strong> 8004<br /><strong>Posted:</strong> 14 September 2007 at 7:09am<br /><br /><P><FONT size=3>Hi XTP&nbsp;programers</FONT></P><DIV><FONT size=3>If I select customize (ribbon bar) than everytime&nbsp;I get&nbsp;a first&nbsp;chance exception.</FONT></DIV><DIV><FONT size=3></FONT>&nbsp;</DIV><DIV><FONT size=3>During&nbsp;analysation the problem, I found this article:</FONT></DIV><DIV><a href="http://support.microsoft.com/kb/158552/en-us" target="_blank"><FONT size=3>http://support.microsoft.com/kb/158552/en-us</FONT></A></DIV><DIV><FONT size=3></FONT>&nbsp;</DIV><DIV><FONT size=3>A look into&nbsp;MSDN for PROPSHEETPAGE Structure confirme the problem.</FONT></DIV><DIV><DT><B><FONT size=2>pResource</FONT></B><DT><FONT size=2>Pointer to a dialog box template in memory. The PropertySheet function assumes that the template is <FONT color=#ff0000>not write-protected</FONT>. A read-only template will cause an exception in some versions of Windows.</FONT></DT></DIV><DIV><FONT size=3></FONT>&nbsp;</DIV><DIV><DIV><FONT size=3>The exception doesn't raised if the current font (CDialogTemplate) and the actual font of the property sheet dialog is not equal. So the function</FONT></DIV><DIV><FONT face="Courier New, Courier, mono" size=2>_AfxChangePropPageFont(pTemplate, bWizard);</FONT></DIV><DIV><FONT size=3>in method </FONT><FONT face="Courier New, Courier, mono" size=2>CPropertyPage::PreProcessPageTemplate(PROPSHEETPAGE&amp; psp, BOOL bWizard) </FONT><FONT size=3>makes a writeable&nbsp;copy of the dialog resource.</FONT></DIV><DIV><FONT size=3></FONT>&nbsp;</DIV><DIV><FONT size=3>This class also free the global memory object&nbsp;at termination.</FONT></DIV><DIV><FONT size=3></FONT><FONT size=3></FONT>&nbsp;</DIV></DIV><DIV><FONT size=3>To resolve the problem I would like to<FONT face="Verdana, Arial, Helvetica, sans-serif"> subclass </FONT></FONT><FONT size=2><FONT face="Courier New, Courier, mono">CXTPRibbonCustomizeQuickAccessPage </FONT></FONT><FONT size=2><FONT face="Verdana, Arial, Helvetica, sans-serif" size=3>and overwrite the&nbsp;method </FONT></FONT><FONT><FONT face="Courier New, Courier, mono" size=2>PreProcessPageTemplate</FONT></DIV></FONT><DIV><FONT size=2><FONT size=3>to create always&nbsp;a copy. But the problem is, that</FONT></FONT></DIV><DIV><FONT size=2><FONT size=3>a) this work have to do for every page</FONT></FONT></DIV><DIV><FONT size=2><FONT size=3>b) 2 pages/objects already created in </FONT></FONT><FONT><FONT face="Courier New, Courier, mono" size=2>CXTPCustomizeSheet</FONT></FONT></DIV><DIV><FONT><FONT face="Courier New" size=2></FONT></FONT>&nbsp;</DIV><DIV><FONT><FONT size=3>Make it sense to modify your classes and create a copy at default?</FONT></FONT></DIV><DIV><FONT><FONT size=3></FONT></FONT>&nbsp;</DIV><DIV><FONT><FONT size=3></FONT></FONT><FONT><FONT size=3>Best regards</FONT></FONT></DIV><DIV><FONT><FONT size=3>Michael Sabo</FONT></DIV></FONT>]]>
   </description>
   <pubDate>Fri, 14 Sep 2007 07:09:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8004&amp;PID=25859&amp;title=firstchance-exception-in-program-exe-comctl32#25859</guid>
  </item> 
 </channel>
</rss>