<?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 : Minor coding error</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Minor coding error]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Apr 2026 03:30:56 +0000</pubDate>
  <lastBuildDate>Thu, 16 Apr 2009 07:03:35 +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=14023</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[Minor coding error :    mgampi wrote:Hi;I thought...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14023&amp;PID=48004&amp;title=minor-coding-error#48004</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 14023<br /><strong>Posted:</strong> 16 April 2009 at 7:03am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by mgampi" alt="Originally posted by mgampi" style="vertical-align: text-bottom;" /> <strong>mgampi wrote:</strong><br /><br />Hi;<br><br>I thought nowadays operator new throws a std::bad_alloc exception...<br></td></tr></table><br><br><a href="http://support.microsoft.com/?scid=kb%3Ben-us%3B167733&amp;x=21&amp;y=11" target="_blank">http://support.microsoft.com/?scid=kb%3Ben-us%3B167733&amp;x=21&amp;y=11</a><br><br>]]>
   </description>
   <pubDate>Thu, 16 Apr 2009 07:03:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14023&amp;PID=48004&amp;title=minor-coding-error#48004</guid>
  </item> 
  <item>
   <title><![CDATA[Minor coding error : Hi;I thought nowadays operator...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14023&amp;PID=47966&amp;title=minor-coding-error#47966</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 14023<br /><strong>Posted:</strong> 15 April 2009 at 5:24pm<br /><br />Hi;<br><br>I thought nowadays operator new throws a std::bad_alloc exception...<br>]]>
   </description>
   <pubDate>Wed, 15 Apr 2009 17:24:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14023&amp;PID=47966&amp;title=minor-coding-error#47966</guid>
  </item> 
  <item>
   <title><![CDATA[Minor coding error :    znakeeye wrote:BOOL CXTPPropertySheet::AddButton(UINT...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14023&amp;PID=47930&amp;title=minor-coding-error#47930</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 14023<br /><strong>Posted:</strong> 15 April 2009 at 6:01am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by znakeeye" alt="Originally posted by znakeeye" style="vertical-align: text-bottom;" /> <strong>znakeeye wrote:</strong><br /><br /><p>BOOL CXTPPropertySheet::AddButton(UINT nIDCaption, UINT nID)<br>{<br>&nbsp;CString strButton;<br>&nbsp;CXTPResourceManager::AssertValid(XTPResourceManager()-&gt;LoadString(&amp;strButton, nIDCaption));</p><p>&nbsp;CButton* pButton = <strong>new CButton();<br></strong>&nbsp;if (!pButton-&gt;Create(strButton, WS_CHILD | BS_PUSHBUTTON | WS_TABSTOP | WS_VISIBLE, CRect(0, 0, 0, 0), this, nID))<br>&nbsp;&nbsp;<strong>return FALSE;</strong></p><p>Shouldn't happen, but if it does there will be a leak...</p></td></tr></table><br><br>Shouldn't that be<br>if (!pButton || !pButton-&gt;Create(...))<br><br>]]>
   </description>
   <pubDate>Wed, 15 Apr 2009 06:01:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14023&amp;PID=47930&amp;title=minor-coding-error#47930</guid>
  </item> 
  <item>
   <title><![CDATA[Minor coding error : Thanks. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14023&amp;PID=47923&amp;title=minor-coding-error#47923</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 14023<br /><strong>Posted:</strong> 15 April 2009 at 4:25am<br /><br />Thanks.]]>
   </description>
   <pubDate>Wed, 15 Apr 2009 04:25:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14023&amp;PID=47923&amp;title=minor-coding-error#47923</guid>
  </item> 
  <item>
   <title><![CDATA[Minor coding error : BOOL CXTPPropertySheet::AddButton(UINT...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14023&amp;PID=47917&amp;title=minor-coding-error#47917</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 14023<br /><strong>Posted:</strong> 15 April 2009 at 3:39am<br /><br /><P>BOOL CXTPPropertySheet::AddButton(UINT nIDCaption, UINT nID)<BR>{<BR>&nbsp;CString strButton;<BR>&nbsp;CXTPResourceManager::AssertValid(XTPResourceManager()-&gt;LoadString(&amp;strButton, nIDCaption));</P><P>&nbsp;CButton* pButton = <strong>new CButton();<BR></strong>&nbsp;if (!pButton-&gt;Create(strButton, WS_CHILD | BS_PUSHBUTTON | WS_TABSTOP | WS_VISIBLE, CRect(0, 0, 0, 0), this, nID))<BR>&nbsp;&nbsp;<strong>return FALSE;</strong></P><P>Shouldn't happen, but if it does there will be a leak...</P>]]>
   </description>
   <pubDate>Wed, 15 Apr 2009 03:39:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14023&amp;PID=47917&amp;title=minor-coding-error#47917</guid>
  </item> 
 </channel>
</rss>