<?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 : significance of AFX_CODEJOCK_PRIVATE</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : General Discussion : significance of AFX_CODEJOCK_PRIVATE]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 21:52:16 +0000</pubDate>
  <lastBuildDate>Thu, 26 Nov 2009 02:02:24 +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=15701</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[significance of AFX_CODEJOCK_PRIVATE : hmm.   Maybe it was added to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15701&amp;PID=55181&amp;title=significance-of-afx-codejock-private#55181</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 15701<br /><strong>Posted:</strong> 26 November 2009 at 2:02am<br /><br />hmm. <DIV></DIV><DIV></DIV>Maybe it was added to support some national characters.&nbsp;&nbsp; but XML should handle it without problems.<DIV>&nbsp;</DIV><DIV>Anyway I think single </DIV><DIV>&nbsp;</DIV><DIV>PX_String(pPX, pszPropName, strValue);</DIV><DIV>&nbsp;</DIV><DIV>can replace it all. </DIV><DIV>&nbsp;</DIV><DIV>at least move CXTPPropExchangeXMLNode::PreformatString one line up - to call it only with ANSI version. PX_String already run it.</DIV>]]>
   </description>
   <pubDate>Thu, 26 Nov 2009 02:02:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15701&amp;PID=55181&amp;title=significance-of-afx-codejock-private#55181</guid>
  </item> 
  <item>
   <title><![CDATA[significance of AFX_CODEJOCK_PRIVATE :    oleg wrote:I don&amp;#039;t see...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15701&amp;PID=55139&amp;title=significance-of-afx-codejock-private#55139</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5706">JohnPerks</a><br /><strong>Subject:</strong> 15701<br /><strong>Posted:</strong> 25 November 2009 at 7:49am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br />I don't see how PreformatString can be useful in application code.</td></tr></table><br><br>Without wishing to speak ill of my predecessor, neither can I at the moment. The code is below if that helps.<br><br>In general, should the items declared in such PRIVATE blocks be avoided? In which case, is std::auto_ptr&lt;CXTPPropExchangeEnumerator&gt; to be preferred over CXTPPropExchangeEnumeratorPtr?<br><br>void SomeClass::LoadXMLString(CXTPPropExchange* pPX, LPCTSTR pszPropName, CString&amp; strValue)<br>{<br>#ifdef _UNICODE<br>&nbsp;&nbsp;&nbsp; PX_String(pPX, pszPropName, strValue);<br>#else<br><br>&nbsp;&nbsp;&nbsp; BSTR bstrValue = 0;<br>&nbsp;&nbsp;&nbsp; PX_Bstr(pPX, pszPropName, bstrValue, 0);<br><br>&nbsp;&nbsp;&nbsp; ASSERT(!bstrValue || wcslen(bstrValue) &lt; 1024);<br><br>&nbsp;&nbsp;&nbsp; if (bstrValue)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; WideCharToMultiByte(0, 0, bstrValue, -1, strValue.GetBuffer(1024), 1024, 0, 0);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strValue.ReleaseBuffer();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SysFreeString(bstrValue);<br>&nbsp;&nbsp;&nbsp; }<br>#endif<br>&nbsp;&nbsp;&nbsp; CXTPPropExchangeXMLNode::PreformatString(strValue, FALSE);<br>}<br><br>]]>
   </description>
   <pubDate>Wed, 25 Nov 2009 07:49:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15701&amp;PID=55139&amp;title=significance-of-afx-codejock-private#55139</guid>
  </item> 
  <item>
   <title><![CDATA[significance of AFX_CODEJOCK_PRIVATE : Hi, I don&amp;#039;t see how PreformatString...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15701&amp;PID=55131&amp;title=significance-of-afx-codejock-private#55131</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 15701<br /><strong>Posted:</strong> 25 November 2009 at 5:00am<br /><br />Hi,<DIV>I don't see how PreformatString can be useful in application code. Please show it with context.</DIV>]]>
   </description>
   <pubDate>Wed, 25 Nov 2009 05:00:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15701&amp;PID=55131&amp;title=significance-of-afx-codejock-private#55131</guid>
  </item> 
  <item>
   <title><![CDATA[significance of AFX_CODEJOCK_PRIVATE : I&amp;#039;ve just inherited a fairly...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15701&amp;PID=55107&amp;title=significance-of-afx-codejock-private#55107</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5706">JohnPerks</a><br /><strong>Subject:</strong> 15701<br /><strong>Posted:</strong> 24 November 2009 at 10:03am<br /><br />I've just inherited a fairly large body of MFC code that uses Codejock. I've noticed that the code refers to types (such asCXTPPropExchangeEnumeratorPtr) and methods (such as CXTPPropExchangeXmlNode::PreformatString) that are in an AFX_CODEJOCK_PRIVATE block. (The former of these is used in the examples in the documentatin, which muddies the waters yet further.)<br><br>Is such code intended to be called, or is it best avoided as an internal detail?<br><br>Many thanks<br><br>]]>
   </description>
   <pubDate>Tue, 24 Nov 2009 10:03:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15701&amp;PID=55107&amp;title=significance-of-afx-codejock-private#55107</guid>
  </item> 
 </channel>
</rss>