<?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 : XTRegistryManager Problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : XTRegistryManager Problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 09 Jun 2026 01:22:42 +0000</pubDate>
  <lastBuildDate>Fri, 22 Aug 2003 14:30:52 +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=106</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[XTRegistryManager Problem : Yes, you are correct. Thanks for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=106&amp;PID=300&amp;title=xtregistrymanager-problem#300</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=7">jwhagen</a><br /><strong>Subject:</strong> 106<br /><strong>Posted:</strong> 22 August 2003 at 2:30pm<br /><br /><P>Yes, you are correct. Thanks for pointing that out. Not sure how or why I missed it. Sorry for the trouble.</P><P>John Hagen</P>]]>
   </description>
   <pubDate>Fri, 22 Aug 2003 14:30:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=106&amp;PID=300&amp;title=xtregistrymanager-problem#300</guid>
  </item> 
  <item>
   <title><![CDATA[XTRegistryManager Problem : John, We found the problem. You...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=106&amp;PID=299&amp;title=xtregistrymanager-problem#299</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=105">blindemann</a><br /><strong>Subject:</strong> 106<br /><strong>Posted:</strong> 22 August 2003 at 1:55pm<br /><br /><P class=Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">John,</SPAN></FONT></P><P class=Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">We found the problem. You never allocated CXTRegistryManager with a new. </SPAN></FONT></P><P class=Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SetRegistryKey(_T("Codejock Software Demos"));</SPAN></FONT></P><P class=Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <B><SPAN style="FONT-WEIGHT: bold">m_pXTRegistryManager = new CXTRegistryManager;</SPAN></B></SPAN></FONT></P><P class=Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CString st&nbsp; = m_pXTRegistryManager-&gt;GetProfileString(_T("Settings"), _T("TestSettingOne"), _T("0"));</SPAN></FONT></P><P class=Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CString str = m_pXTRegistryManager-&gt;WriteProfileString(_T("Settings"), _T("TestSettingTwo"), _T("0"));</SPAN></FONT></P><P class=Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">We are not sure why you would make this a static pointer. Members of VisualStudio7 can be accessed through theApp. </SPAN></FONT></P><P class=Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Thanks,</SPAN></FONT></P><P class=Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Bob</SPAN></FONT></P>]]>
   </description>
   <pubDate>Fri, 22 Aug 2003 13:55:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=106&amp;PID=299&amp;title=xtregistrymanager-problem#299</guid>
  </item> 
  <item>
   <title><![CDATA[XTRegistryManager Problem : I am trying to utilize the functions...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=106&amp;PID=223&amp;title=xtregistrymanager-problem#223</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=7">jwhagen</a><br /><strong>Subject:</strong> 106<br /><strong>Posted:</strong> 22 July 2003 at 12:37pm<br /><br /><P>I am trying to utilize the functions of the XTRegistryManager. When attempting to utilize the following functions, I receive a First Chance Exception. It appears to occur when </P><P><FONT color=#0000ff>if</FONT> (<FONT color=#808080>m_strINIFileName</FONT>.<FONT color=#880000>IsEmpty</FONT>())</P><P>is executed. This&nbsp;occurs&nbsp;in both of the following functions:e&nbsp;<FONT color=#0000ff> </FONT></P><P>BOOL <FONT color=#0000ff>CXTRegistryManager</FONT>::<FONT color=#880000>GetProfileString</FONT>(<FONT color=#0000ff>LPCTSTR</FONT> <FONT color=#808080>lpszSection</FONT>, <FONT color=#0000ff>LPCTSTR</FONT> <FONT color=#808080>lpszEntry</FONT>, <FONT color=#0000ff>LPCTSTR</FONT> <FONT color=#808080>lpszValue</FONT>)</P><FONT color=#0000ff><P>BOOL</FONT> <FONT color=#0000ff>CXTRegistryManager</FONT>::<FONT color=#880000>WriteProfileString</FONT>(<FONT color=#0000ff>LPCTSTR</FONT> <FONT color=#808080>lpszSection</FONT>, <FONT color=#0000ff>LPCTSTR</FONT> <FONT color=#808080>lpszEntry</FONT>, <FONT color=#0000ff>LPCTSTR</FONT> <FONT color=#808080>lpszValue</FONT>)</P><P>{</P><P><FONT color=#a000a0>ASSERT</FONT>(<FONT color=#808080>lpszSection</FONT> != <FONT color=#a000a0>NULL</FONT>);</P><P><FONT color=#0000ff>if</FONT> (<FONT color=#808080>m_strINIFileName</FONT>.<FONT color=#880000>IsEmpty</FONT>())</P><P>{</P><P>I have confirmed the three parameters are being passed correctly. I am also using the <FONT color=red>SetRegistryKey</FONT>(<FONT color=magenta>COMPANYNAME</FONT>) in the <FONT color=red>InitInstance</FONT>() of the main application.</P><P>I have not chosen to create an INI file, but instead want to write to the registry. Therefore, I have not taken any measures to change the value of&nbsp;<FONT color=#808080>m_strINIFileName. </FONT><FONT color=black>In debugging this function, I noted that many times <FONT color=#808080>m_strINIFileName </FONT>is accessed the string is always NULL, but when this function is entered, the string appears to be invalid (value = ???).</FONT></P><P>Is there something else that must occur to set the <FONT color=#808080>m_strINIFileName </FONT><FONT color=black>to a valid value before calling these functions when reading or writing to the registry?</FONT></P><P><FONT color=black>Thanks.</FONT></P><P><FONT color=black>John Hagen</FONT></P><span style="font-size:10px"><br /><br />Edited by jwhagen</span>]]>
   </description>
   <pubDate>Tue, 22 Jul 2003 12:37:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=106&amp;PID=223&amp;title=xtregistrymanager-problem#223</guid>
  </item> 
 </channel>
</rss>