<?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 : Storing Profile Values in an INI File</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Storing Profile Values in an INI File]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 16 Jun 2026 05:44:36 +0000</pubDate>
  <lastBuildDate>Sun, 23 Jul 2006 04:21:06 +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=4595</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[Storing Profile Values in an INI File : Is this on its way ... I really...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4595&amp;PID=14314&amp;title=storing-profile-values-in-an-ini-file#14314</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1322">danpetitt</a><br /><strong>Subject:</strong> 4595<br /><strong>Posted:</strong> 23 July 2006 at 4:21am<br /><br /><P>Is this on its way ... I really need the ini file saving/loading??</P>]]>
   </description>
   <pubDate>Sun, 23 Jul 2006 04:21:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4595&amp;PID=14314&amp;title=storing-profile-values-in-an-ini-file#14314</guid>
  </item> 
  <item>
   <title><![CDATA[Storing Profile Values in an INI File : Hello,  I mean that you was...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4595&amp;PID=14196&amp;title=storing-profile-values-in-an-ini-file#14196</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4595<br /><strong>Posted:</strong> 17 July 2006 at 12:54pm<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>I mean that you was right that LoadOptions had bug when ini file must be used.&nbsp; For 10.3 we fixed it and it will work right.</DIV><DIV>&nbsp;</DIV><DIV>We plan to release 10.3 in beginning of August.</DIV>]]>
   </description>
   <pubDate>Mon, 17 Jul 2006 12:54:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4595&amp;PID=14196&amp;title=storing-profile-values-in-an-ini-file#14196</guid>
  </item> 
  <item>
   <title><![CDATA[Storing Profile Values in an INI File :    oleg wrote:Hello, Actually...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4595&amp;PID=14191&amp;title=storing-profile-values-in-an-ini-file#14191</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2166">IRMark</a><br /><strong>Subject:</strong> 4595<br /><strong>Posted:</strong> 17 July 2006 at 9:51am<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 />Hello, Actually you right.... For 10.3 we added support of ini too.</td></tr></table><br><br>Hi Oleg,<br><br>I'm not quite sure what you mean?&nbsp; Do you mean that there is support for INI files in 10.2 or that I was right in saying that there are errors in the source comments?<br><br>When is version 10.3 being released?<br><br>mark.<br><br>]]>
   </description>
   <pubDate>Mon, 17 Jul 2006 09:51:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4595&amp;PID=14191&amp;title=storing-profile-values-in-an-ini-file#14191</guid>
  </item> 
  <item>
   <title><![CDATA[Storing Profile Values in an INI File : Hello, Actually you right.......]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4595&amp;PID=14182&amp;title=storing-profile-values-in-an-ini-file#14182</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4595<br /><strong>Posted:</strong> 15 July 2006 at 11:15am<br /><br />Hello, Actually you right.... For 10.3 we added support of ini too.]]>
   </description>
   <pubDate>Sat, 15 Jul 2006 11:15:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4595&amp;PID=14182&amp;title=storing-profile-values-in-an-ini-file#14182</guid>
  </item> 
  <item>
   <title><![CDATA[Storing Profile Values in an INI File :  Hi Oleg,Thanks for the response!...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4595&amp;PID=14173&amp;title=storing-profile-values-in-an-ini-file#14173</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2166">IRMark</a><br /><strong>Subject:</strong> 4595<br /><strong>Posted:</strong> 14 July 2006 at 3:55pm<br /><br /><p style="margin-bottom: 0in;">Hi Oleg,<br><br>Thanks for theresponse!&nbsp; I was looking at the source code a bit more andnoticed that the first ASSERT if coming (originally) from theXTPFrameWnd's function LoadCommandBars where the source code says thefollowing:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>//-----------------------------------------------------------------------<br>&nbsp;&nbsp;&nbsp;// Summary:<br>&nbsp;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp;&nbsp; Callthis function to retrieve state information from the registry<br>&nbsp;&nbsp;&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp; or .INI file.<br>&nbsp;&nbsp;&nbsp; //Parameters:<br>&nbsp;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp;&nbsp;lpszProfileName - Points to a null-terminated string thatspecifies<br>&nbsp;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the name of a section in the initialization file<br>&nbsp;&nbsp;&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;or a key in the Windows registry where state<br>&nbsp;&nbsp;&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;information is stored.<br>&nbsp;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp;&nbsp;bSilent&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - TRUE todisable user notifications when command bars are restore to theiroriginal state.<br>&nbsp;&nbsp;&nbsp;//-----------------------------------------------------------------------<br></pre></td></tr></table><br><br>Thesame goes to the source documentation for theCXTPCommandBars::LoadOptions() function.&nbsp; Am I to assume thatthe comments left in the source are no longer accurate and were leftin error?<br><br>It's a shame that the toolkit cannot use theregistry or the profile INI file interchangeably but being able touse an XML file should solve my problems.&nbsp; Thanks for theinformation. </p><br><br>]]>
   </description>
   <pubDate>Fri, 14 Jul 2006 15:55:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4595&amp;PID=14173&amp;title=storing-profile-values-in-an-ini-file#14173</guid>
  </item> 
  <item>
   <title><![CDATA[Storing Profile Values in an INI File : Hello, Unfortunatelly SaveCommandBars/LoadCommandBars...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4595&amp;PID=14170&amp;title=storing-profile-values-in-an-ini-file#14170</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4595<br /><strong>Posted:</strong> 14 July 2006 at 12:50pm<br /><br /><DIV>Hello,</DIV><DIV>Unfortunatelly SaveCommandBars/LoadCommandBars don't support ini files. you can save/load setting in XML file (see for example GUI_Whidbey sample)</DIV>]]>
   </description>
   <pubDate>Fri, 14 Jul 2006 12:50:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4595&amp;PID=14170&amp;title=storing-profile-values-in-an-ini-file#14170</guid>
  </item> 
  <item>
   <title><![CDATA[Storing Profile Values in an INI File :  Hi Everyone,I&amp;#039;ve searched...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4595&amp;PID=14165&amp;title=storing-profile-values-in-an-ini-file#14165</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2166">IRMark</a><br /><strong>Subject:</strong> 4595<br /><strong>Posted:</strong> 14 July 2006 at 10:38am<br /><br /><p style="margin-bottom: 0in;">Hi Everyone,<br><br>I've searched theforums but have been unable to find an answer to this situation.&nbsp;Hopefully it's something simple and I've just missed a step.<br><br>I'mworking on a new application and in order to make it more compatiblewith Windows Vista and the expectations of Vista I'm attempting tostore my applications profile values in an INI file in the"Application Data" folder rather then in theregistry.<br><br>According to the MSDN documentation you canaccomplish this by settings the CWinApp member m_pszProfileName andnot calling SetRegistryKey() at all.<br><br>When I do this myapplication and the Xtreme ToolkitPro stores the profile values inthe INI file properly, however when I run the debug version I getasserts when the program starts and when it closes.<br><br>Theasserts are coming from the following lines:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>HKEY&nbsp;hKey = AfxGetApp()-&gt;GetAppRegistryKey();<br></pre></td></tr></table> <br><br>in<br><br><table width="99%"><tr><td><pre class="BBcode"><br>void CXTPCommandBars::LoadOptions(LPCTSTRlpszProfileName)<br></pre></td></tr></table><br><br>When I start and exit theapplication and:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>HKEY hRoot =AfxGetApp()-&gt;GetSectionKey(_xtRootSection);<br>ASSERT(hRoot);<br></pre></td></tr></table><br><br>in<br><br><table width="99%"><tr><td><pre class="BBcode"><br>voidCXTPDockingPaneLayout::Save(LPCTSTR strSection)<br></pre></td></tr></table><br><br>whenI exit the application and then finally an exception from thisline:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>AfxDelRegTreeHelper(m_hParentKey,m_strSectionName);<br></pre></td></tr></table><br><br>in <br><br><table width="99%"><tr><td><pre class="BBcode"><br>voidCXTPPropExchangeRegistry::EmptySection()<br></pre></td></tr></table><br><br>whenexiting the program.<br><br>So my question is, what am I missing?&nbsp;How can I configure the Xtreme Toolkit Pro (10.2) to use the INI filespecified and ignore the registry?&nbsp; If I ignore all of theasserts and continue everything seems to work fine but this does notseem to be the correct way to do things.<br><br>Any and all help isvery appreciated!<br><br>Thanks!<br><br>mark. </p>]]>
   </description>
   <pubDate>Fri, 14 Jul 2006 10:38:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4595&amp;PID=14165&amp;title=storing-profile-values-in-an-ini-file#14165</guid>
  </item> 
 </channel>
</rss>