<?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 : CXTPPropExchange faq</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPPropExchange faq]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 03:51:04 +0000</pubDate>
  <lastBuildDate>Thu, 28 Feb 2008 03:09:04 +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=9715</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[CXTPPropExchange faq : No, because the struct is a binary...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9715&amp;PID=31701&amp;title=cxtppropexchange-faq#31701</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=233">jimmy</a><br /><strong>Subject:</strong> 9715<br /><strong>Posted:</strong> 28 February 2008 at 3:09am<br /><br />No, because the struct is a binary mapping of a file.<br><br>&nbsp; Jimmy<br><br>]]>
   </description>
   <pubDate>Thu, 28 Feb 2008 03:09:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9715&amp;PID=31701&amp;title=cxtppropexchange-faq#31701</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropExchange faq : Hi,  Maybe easy to change &amp;#034;char...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9715&amp;PID=31679&amp;title=cxtppropexchange-faq#31679</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9715<br /><strong>Posted:</strong> 27 February 2008 at 1:40pm<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>Maybe easy to change "char szPassword" to "CString strPassword" in struct ?</DIV><DIV>:)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 27 Feb 2008 13:40:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9715&amp;PID=31679&amp;title=cxtppropexchange-faq#31679</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropExchange faq : Is this a correct way ?template&amp;lt;class...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9715&amp;PID=31646&amp;title=cxtppropexchange-faq#31646</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=233">jimmy</a><br /><strong>Subject:</strong> 9715<br /><strong>Posted:</strong> 27 February 2008 at 7:31am<br /><br />Is this a correct way ?<br><br>template&lt;class TYPE&gt; void CharBufCpy(TYPE&amp; szBuf, const CString&amp; lpText)<br>{<br>&nbsp;&nbsp;&nbsp; int iSize = sizeof(szBuf) - 1;<br>&nbsp;&nbsp;&nbsp; memset(szBuf, 0, iSize + 1);<br>&nbsp;&nbsp;&nbsp; int iLenText = lpText.GetLength();<br>&nbsp;&nbsp;&nbsp; if (iLenText &gt; iSize)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; iLenText = iSize;<br>&nbsp;&nbsp;&nbsp; strncpy(szBuf, lpText, iLenText);<br>}<br><br>template&lt;class TYPE&gt; BOOL PX_CharBuffer(CXTPPropExchange* pPX, LPCTSTR pszPropName, TYPE&amp; szBuf, LPCTSTR lpDefault)<br>{<br>&nbsp;&nbsp;&nbsp; if (pPX-&gt;IsStoring())<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CString strVal(szBuf);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return PX_String(pPX, pszPropName, strVal);<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CString strVal;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; BOOL bOk = PX_String(pPX, pszPropName, strVal, lpDefault);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (bOk)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CharBufCpy(szBuf, strVal);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return bOk;<br>&nbsp;&nbsp;&nbsp; }<br>}<br><br>&nbsp; Jimmy<br><br>]]>
   </description>
   <pubDate>Wed, 27 Feb 2008 07:31:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9715&amp;PID=31646&amp;title=cxtppropexchange-faq#31646</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropExchange faq : Hello,i use CXTPPropExchange function...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9715&amp;PID=31645&amp;title=cxtppropexchange-faq#31645</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=233">jimmy</a><br /><strong>Subject:</strong> 9715<br /><strong>Posted:</strong> 27 February 2008 at 7:03am<br /><br />Hello,<br><br>i use CXTPPropExchange function to save &amp; store some data.<br><br>static void PropLOS2Data(CXTPPropExchange* pPX, SLOS2Data&amp; ld)<br>{<br>&nbsp;&nbsp; &nbsp;CXTPPropExchangeSection secLD(pPX-&gt;GetSection("LOS2Data"));<br><br>&nbsp;&nbsp; &nbsp;PX_ULong(&amp;secLD, _T("CRC"), ld.dwCRC, 0);<br>&nbsp;&nbsp; &nbsp;PX_ULong(&amp;secLD, _T("LenData"), ld.dwLenData, 0);<br>&nbsp;&nbsp;&nbsp; // ??? PX_CharBuffer(&amp;secLD, _T("PasswordOnline"), ld.szPasswordOnline, "");<br>}<br><br>With this function i save/load some data from a struct.<br>DWORD, int values are no problem.<br><br>#define MAX_PASSWORD&nbsp;&nbsp;  19<br><br>struct SLOS2Data<br>{<br>&nbsp; ULONG dwCRC;<br>&nbsp; ULONG dwLenData;<br>&nbsp; char szPassword&#091;MAX_PASSWORD + 1&#093;;<br>}<br><br>But how can i save/load szPassword ?<br>The szPassword is always \0 terminated.<br><br>I have wrote this template, but how can i save/load it ?<br>Or is there a other nice solution ?<br><br>template&lt;class TYPE&gt; BOOL PX_CharBuffer(CXTPPropExchange* pPX, LPCTSTR pszPropName, TYPE&amp; szBuf, LPCTSTR lpDefault)<br>{<br>&nbsp;&nbsp;&nbsp; int iBufSize = sizeof(szBuf);<br>&nbsp;&nbsp;&nbsp; // DWORD nBytes = iBufSize;<br>&nbsp;&nbsp;&nbsp; // return PX_Blob(pPX, pszPropName, szBuf, nBytes);<br>}<br><br>&nbsp; Jimmy<br><br>]]>
   </description>
   <pubDate>Wed, 27 Feb 2008 07:03:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9715&amp;PID=31645&amp;title=cxtppropexchange-faq#31645</guid>
  </item> 
 </channel>
</rss>