<?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 : CXTRegistryManager suggestion</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTRegistryManager suggestion]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Apr 2026 12:05:29 +0000</pubDate>
  <lastBuildDate>Wed, 26 Nov 2008 03:16:41 +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=12788</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[CXTRegistryManager suggestion : Hi,  To create cleaner codeadd...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12788&amp;PID=43202&amp;title=cxtregistrymanager-suggestion#43202</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12788<br /><strong>Posted:</strong> 26 November 2008 at 3:16am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>To create cleaner code&nbsp;add 2 members GetProfileInt and WriteProfileInt and call CXTRegistryManager&nbsp;+ future SetRegistryKey + reg.GetProfileInt/reg.WriteProfileInt .</DIV>]]>
   </description>
   <pubDate>Wed, 26 Nov 2008 03:16:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12788&amp;PID=43202&amp;title=cxtregistrymanager-suggestion#43202</guid>
  </item> 
  <item>
   <title><![CDATA[CXTRegistryManager suggestion : 1. Yes, but the code code be cleaner...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12788&amp;PID=43183&amp;title=cxtregistrymanager-suggestion#43183</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 12788<br /><strong>Posted:</strong> 25 November 2008 at 8:42am<br /><br />1. Yes, but the code code be cleaner ;)<DIV>2. ? :)</DIV>]]>
   </description>
   <pubDate>Tue, 25 Nov 2008 08:42:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12788&amp;PID=43183&amp;title=cxtregistrymanager-suggestion#43183</guid>
  </item> 
  <item>
   <title><![CDATA[CXTRegistryManager suggestion : Hi,  1. its easy to emulate...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12788&amp;PID=43177&amp;title=cxtregistrymanager-suggestion#43177</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12788<br /><strong>Posted:</strong> 25 November 2008 at 7:13am<br /><br /><P>Hi,</P><DIV>&nbsp;</DIV><DIV>1. its easy to emulate it:</DIV><DIV>&nbsp;</DIV><DIV>int nValue = reg.GetProfileInt("Settings", "Value", -1);</DIV><DIV>if (nValue == -1) reg.WriteProfileInt("Settings", "Value", 0), nValue = 0;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 25 Nov 2008 07:13:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12788&amp;PID=43177&amp;title=cxtregistrymanager-suggestion#43177</guid>
  </item> 
  <item>
   <title><![CDATA[CXTRegistryManager suggestion :  Suggestion #1 Sometimes you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12788&amp;PID=43171&amp;title=cxtregistrymanager-suggestion#43171</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 12788<br /><strong>Posted:</strong> 25 November 2008 at 5:00am<br /><br /><FONT color=#010001 size=2><DIV><strong>Suggestion #1</strong></DIV><DIV>Sometimes you want registry keys to always be present in the registry. This makes it easier for users to edit some special settings!</DIV><DIV>&nbsp;</DIV><DIV>I think you should have an extra parameter in the CXTRegistryManager constructor:</DIV><DIV>&nbsp;</DIV><DIV>BOOL bPersistentValues = TRUE;</DIV><DIV>CXTRegistryManager reg(HKEY_LOCAL_MACHINE, bPersistentValues);</DIV><DIV>int value = reg.GetProfileInt("Settings", "Value", 0);</DIV><DIV>&nbsp;</DIV><DIV>After the call to GetProfileInt, the key/value will be created, hence readable by a user!</DIV><DIV>&nbsp;</DIV><DIV>This behavior is disencouraged most of the time, so the second parameter should default to FALSE!</DIV><DIV>&nbsp;</DIV><DIV><DIV><strong>Suggestion #2</strong></DIV></DIV><DIV>Also, I think it should be possible to set the registry key and profile name directly in the constructor. We have multiple products accessing each other's profiles, and it would be very convenient if you could type the following:</DIV><DIV>&nbsp;</DIV><DIV>CXTRegistryManager reg(HKEY_LOCAL_MACHINE, TRUE);</DIV><DIV>and a second constructor:</DIV><DIV><DIV>CXTRegistryManager reg(HKEY_LOCAL_MACHINE, "RegistryKey", "ProfileName", TRUE);</DIV><DIV>&nbsp;</DIV><DIV>The code gets bloated if you need to call SetRegistryKey (or similar) all the time!</DIV></DIV></FONT>]]>
   </description>
   <pubDate>Tue, 25 Nov 2008 05:00:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12788&amp;PID=43171&amp;title=cxtregistrymanager-suggestion#43171</guid>
  </item> 
 </channel>
</rss>