<?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 : SaveCommandBars creates hidden file?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : SaveCommandBars creates hidden file?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 27 May 2026 14:28:34 +0000</pubDate>
  <lastBuildDate>Sat, 11 Sep 2004 14:40: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=1142</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[SaveCommandBars creates hidden file? : I had command bar streamswith...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1142&amp;PID=3093&amp;title=savecommandbars-creates-hidden-file#3093</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=150">Sven</a><br /><strong>Subject:</strong> 1142<br /><strong>Posted:</strong> 11 September 2004 at 2:40pm<br /><br /><P>I had command bar streams&nbsp;with more than 160k base size, this produced the errors in W2k/W9x. If you change the icon of a command the customized icon is also be stored in this stream.</P><P>Imho there are some information which does not have to be stored in the stream (m_strTooltipText, m_strDescriptionText) because they can easily retrieved. But ist seems to be impossible to change the format because of the downward compatibility.</P><P>I slightly changed the command bar serialization in my apps, the stream is always stored into a file in the &lt;Application Data\Company Name\Product Name&gt; folder (only NT based systems). In W9x systems I use the folder where the application is installed. Further I added a menu command to&nbsp;export the settings (registry, bar state) into a selected folder.</P>]]>
   </description>
   <pubDate>Sat, 11 Sep 2004 14:40:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1142&amp;PID=3093&amp;title=savecommandbars-creates-hidden-file#3093</guid>
  </item> 
  <item>
   <title><![CDATA[SaveCommandBars creates hidden file? :  They may recommend that, but...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1142&amp;PID=3092&amp;title=savecommandbars-creates-hidden-file#3092</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 1142<br /><strong>Posted:</strong> 11 September 2004 at 10:44am<br /><br /><br>They may recommend that, but its not storing bitmaps or executables,just the position and text of the commands for the toolbars.&nbsp; Idon't see that its ever going to take up a large amount of space. Minetake up 18-19K it seems.&nbsp; I hardly see that as a problem if itneeds 2 regkeys because of a 16K limit.&nbsp; Maybe the problem is thecommand bar information is not stored efficiently? Could it be changedto take up less space?&nbsp; Why not at least make it an option tosplit the info in the registry?&nbsp; I definately don't want hiddenfiles, in the program files or the local settings directory.&nbsp; Ithink I might be tempted to remove the option for the user to customizethe toolbars if this would happen.&nbsp; Does anybody really havetoolbar files that take up something near 500K or something that wouldreally make it inefficient?<br>]]>
   </description>
   <pubDate>Sat, 11 Sep 2004 10:44:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1142&amp;PID=3092&amp;title=savecommandbars-creates-hidden-file#3092</guid>
  </item> 
  <item>
   <title><![CDATA[SaveCommandBars creates hidden file? : MS doesn not recommend to store...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1142&amp;PID=3085&amp;title=savecommandbars-creates-hidden-file#3085</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=150">Sven</a><br /><strong>Subject:</strong> 1142<br /><strong>Posted:</strong> 11 September 2004 at 3:10am<br /><br /><P>MS doesn not recommend to store large values in registry. See remarks for RegSetValueEx in MSDN:</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P>Value sizes are limited by available memory. Long values (more than 2048 bytes) should be stored as files with the file names stored in the registry. This helps the registry perform efficiently. Application elements such as icons, bitmaps, and executable files should be stored as files and not be placed in the registry.</P></BLOCKQUOTE>]]>
   </description>
   <pubDate>Sat, 11 Sep 2004 03:10:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1142&amp;PID=3085&amp;title=savecommandbars-creates-hidden-file#3085</guid>
  </item> 
  <item>
   <title><![CDATA[SaveCommandBars creates hidden file? :  Well here is some sample code....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1142&amp;PID=3084&amp;title=savecommandbars-creates-hidden-file#3084</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 1142<br /><strong>Posted:</strong> 11 September 2004 at 12:20am<br /><br />Well here is some sample code.&nbsp; I see no point to saving to a hidden file if this works without issue on Win9x:<br><br>Everything in <span style="font-weight: bold;">XTPDockState.cpp</span>:<br><br>add up near the top:<br><span style="color: rgb(0, 102, 0);">AFX_STATIC_DATA const TCHAR _afxCommandBarSplit&#091;&#093; = _T("Split");</span><br><br>In <span style="color: rgb(102, 102, 0);">CXTPCommandBars::SaveBarState</span>:<br>remove everything from <span style="color: rgb(102, 0, 0);">CString strFileName;</span> to the <span style="color: rgb(102, 102, 0);">else </span>and add this before the <span style="color: rgb(102, 102, 0);">else </span>instead:<br><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (dwCount &gt; 16000)</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int iNumChunks = dwCount / 16000;</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DWORD dwLastSize = dwCount % 16000;</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TCHAR buf&#091;256&#093;;</span><br style="color: rgb(0, 102, 0);"><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;AfxGetApp()-&gt;WriteProfileBinary(szSec tion, _afxCommandBarControls,pControls, 16000);</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;AfxGetApp()-&gt;WriteProfileInt(szSectio n, _afxCommandBarLoadFromFile,FALSE);</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;AfxGetApp()-&gt;WriteProfileInt(szSectio n, _afxCommandBarSplit,iNumChunks);</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for (int i = 1; i &lt; iNumChunks; i++)</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wsprintf(buf, "%s\\%d", szSection, i);</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  AfxGetApp()-&gt;WriteProfileBinary(buf,_afxCommandBarContr ols, pControls + (i * 16000), 16000);</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; wsprintf(buf, "%s\\%d", szSection, iNumChunks);</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;AfxGetApp()-&gt;WriteProfileBinary(buf, _afxCommandBarControls,pControls + (iNumChunks * 16000), dwLastSize);</span><br style="color: rgb(0, 102, 0);"><br>also add:<br><span style="color: rgb(0, 102, 0);">AfxGetApp()-&gt;WriteProfileInt(szSection, _afxCommandBarSplit, 0);</span><br>after the two lines in the <span style="color: rgb(102, 102, 0);">else </span>block<br><br>then in <span style="color: rgb(102, 102, 0);">CXTPCommandBars::LoadBarState</span>:<br>add all of this:<br>&nbsp;<span style="color: rgb(0, 102, 0);">&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; } else if (AfxGetApp()-&gt;GetProfileInt(szSection, _afxCommandBarSplit, 0))</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int iNumChunks =AfxGetApp()-&gt;GetProfileInt(szSection, _afxCommandBarSplit, 0);</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TCHAR buf&#091;256&#093;;</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; BYTE* pControls = NULL;</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; BYTE* pTmp = NULL;</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; UINT dwCount = 0;</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; UINT dwTmp = 0;</span><br style="color: rgb(0, 102, 0);"><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; wsprintf(buf, "%s\\%d", szSection, iNumChunks);</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(AfxGetApp()-&gt;GetProfileBinary(buf, _afxCommandBarControls,&amp;pTmp, &amp;dwTmp))</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; dwCount = dwTmp + (iNumChunks * 16000);</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pControls = new BYTE&#091;dwCount&#093;;</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;memcpy(pControls + (iNumChunks * 16000), pTmp, dwTmp);</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; delete &#091;&#093; pTmp;</span><br style="color: rgb(0, 102, 0);"><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; BOOL bOk = TRUE;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for (int i = 1; i &lt; iNumChunks; i++)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; wsprintf(buf, "%s\\%d",szSection, i);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(!AfxGetApp()-&gt;GetProfileBinary(buf, _afxCommandBarControls,&amp;pTmp, &amp;dwTmp) )<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; bOk = FALSE;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if( dwTmp != 16000 ) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; delete &#091;&#093; pTmp;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; bOk = FALSE;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; memcpy(pControls + (i * 16000),pTmp, 16000);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; delete &#091;&#093; pTmp;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if  (!AfxGetApp()-&gt;GetProfileBinary(szSection,_afxCommandBa rControls, &amp;pTmp, &amp;dwTmp) )<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; bOk = FALSE;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; } else if( dwTmp != 16000 )<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; delete &#091;&#093; pTmp;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; bOk = FALSE;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; } else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; memcpy(pControls, pTmp, 16000);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; delete &#091;&#093; pTmp;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br></span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (bOk)</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CMemFile memFile(pControls, dwCount);</span><br style="color: rgb(0, 102, 0);"><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _LoadControlsPart(memFile, bSilent);</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; </span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; memFile.Close();</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; delete &#091;&#093; pControls;</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</span><br>right before the <span style="color: rgb(102, 102, 0);">else </span>block.<br><br><br>This will cause the info to be split into 16000 byte chunks, the firstwhich is in the normal location, and the rest which are in subkeysnumbered 1 to whatever the 'Split' value specifies.<br>Each chunk is in its own key with the value 'Controls' still.<br><br><br><span style="font-size:10px"><br /><br />Edited by Ark42</span>]]>
   </description>
   <pubDate>Sat, 11 Sep 2004 00:20:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1142&amp;PID=3084&amp;title=savecommandbars-creates-hidden-file#3084</guid>
  </item> 
  <item>
   <title><![CDATA[SaveCommandBars creates hidden file? : Would it not be possible to chunk...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1142&amp;PID=3083&amp;title=savecommandbars-creates-hidden-file#3083</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 1142<br /><strong>Posted:</strong> 10 September 2004 at 11:23pm<br /><br />Would it not be possible to chunk the data into 16000 byte pieces and store each piece under a different key?<br><br>]]>
   </description>
   <pubDate>Fri, 10 Sep 2004 23:23:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1142&amp;PID=3083&amp;title=savecommandbars-creates-hidden-file#3083</guid>
  </item> 
  <item>
   <title><![CDATA[SaveCommandBars creates hidden file? : Just a comment. It is properly...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1142&amp;PID=3062&amp;title=savecommandbars-creates-hidden-file#3062</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 1142<br /><strong>Posted:</strong> 10 September 2004 at 3:17am<br /><br /><P>Just a comment.</P><P>It is properly also a good idea NOT to save&nbsp;the file into the installation folder like "c:\program files\my program" etc, because you run into problems when running as Restricted User under Windows XP.</P><P>- cpede</P>]]>
   </description>
   <pubDate>Fri, 10 Sep 2004 03:17:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1142&amp;PID=3062&amp;title=savecommandbars-creates-hidden-file#3062</guid>
  </item> 
  <item>
   <title><![CDATA[SaveCommandBars creates hidden file? : Right.  Also you can setthefile...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1142&amp;PID=3049&amp;title=savecommandbars-creates-hidden-file#3049</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1142<br /><strong>Posted:</strong> 10 September 2004 at 2:04am<br /><br /><P>Right. </P><P>Also you can set&nbsp;the&nbsp;file name to be stored:</P><P>CXTPCommandBars::SetCustomizationDataFileName</P><P>You can check CustomThemes sample (from Toolkit Pro 9.10)</P><P>there is code how to store customize information to</P><P>\Documents and Settings\use\Local Settings\&nbsp;&nbsp; folder</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Fri, 10 Sep 2004 02:04:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1142&amp;PID=3049&amp;title=savecommandbars-creates-hidden-file#3049</guid>
  </item> 
  <item>
   <title><![CDATA[SaveCommandBars creates hidden file? : There are some restrictions for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1142&amp;PID=3013&amp;title=savecommandbars-creates-hidden-file#3013</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=150">Sven</a><br /><strong>Subject:</strong> 1142<br /><strong>Posted:</strong> 08 September 2004 at 1:59am<br /><br /><P>There are some restrictions for the registry (taken from MSDN):</P><P>Windows 95/98/Me: The maximum size of a single registry value is 16,300 bytes. This limit includes the size of the data (cbData) and the size of the value name (lpValueName). </P><P>Windows 95/98/Me: There is a 64K limit for the total size of all values of a key.</P><P>So if your toolbar customization exceeds the limit the customization would not be stored. There is also a bug in NT4/2000 RegEdit, a value greater than 64K can't be exported/imported with RegEdit. So CodeJock decided to save the customization into a file if the size is larger than 16k (see CXTPCommandBars::SaveBarState).</P>]]>
   </description>
   <pubDate>Wed, 08 Sep 2004 01:59:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1142&amp;PID=3013&amp;title=savecommandbars-creates-hidden-file#3013</guid>
  </item> 
  <item>
   <title><![CDATA[SaveCommandBars creates hidden file? :  Why does sometimes SaveComma...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1142&amp;PID=2982&amp;title=savecommandbars-creates-hidden-file#2982</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 1142<br /><strong>Posted:</strong> 05 September 2004 at 6:23pm<br /><br /><br>Why does sometimes SaveCommandBars(_T("CommandBars")); creates a hidden file called like MyApp.exe-CommandBars<br>It also saves to the registry at the same time just fine, so I don't see why it needs this file also?<br><br>]]>
   </description>
   <pubDate>Sun, 05 Sep 2004 18:23:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1142&amp;PID=2982&amp;title=savecommandbars-creates-hidden-file#2982</guid>
  </item> 
 </channel>
</rss>