<?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 : Bug in handling .ini resources</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Bug in handling .ini resources]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 16 Apr 2026 07:31:19 +0000</pubDate>
  <lastBuildDate>Wed, 21 Jun 2017 05:58:42 +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=23366</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[Bug in handling .ini resources : Hello,Before v17.2 m_strIniFileName...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23366&amp;PID=75893&amp;title=bug-in-handling-ini-resources#75893</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23366<br /><strong>Posted:</strong> 21 June 2017 at 5:58am<br /><br />Hello,<br><br>Before v17.2 &nbsp;m_strIniFileName was initialized with &nbsp;_T("OFFICE2007BLUE_INI"). In v17.2 with empty sting.<br><br>So anyway you need to set&nbsp;<i style=": rgb248, 248, 252;"><span style="font-size: 9.5pt; line-height: 14.5667px; font-family: C&#111;nsolas; color: rgb136, 0, 0;">XTPResourceImages</span></i><span style=": rgb248, 248, 252; font-size: 9.5pt; line-height: 14.5667px; font-family: C&#111;nsolas;">()-&gt;</span><i style=": rgb248, 248, 252;"><span style="font-size: 9.5pt; line-height: 14.5667px; font-family: C&#111;nsolas; color: navy;">m_strIniFileName</span></i><span style=": rgb248, 248, 252; font-size: 9.5pt; line-height: 14.5667px; font-family: C&#111;nsolas;">&nbsp;</span><span style=": rgb248, 248, 252; font-size: 9.5pt; line-height: 14.5667px; font-family: C&#111;nsolas; color: teal;">=</span><span style=": rgb248, 248, 252; font-size: 9.5pt; line-height: 14.5667px; font-family: C&#111;nsolas;">&nbsp;</span><span style=": rgb248, 248, 252; font-size: 9.5pt; line-height: 14.5667px; font-family: C&#111;nsolas; color: rgb160, 0, 160;">_T</span><span style=": rgb248, 248, 252; font-size: 9.5pt; line-height: 14.5667px; font-family: C&#111;nsolas;">(</span><span style=": rgb248, 248, 252; font-size: 9.5pt; line-height: 14.5667px; font-family: C&#111;nsolas; color: rgb163, 21, 21;">"INSIGHT3_THEME_INI"</span><span style=": rgb248, 248, 252; font-size: 9.5pt; line-height: 14.5667px; font-family: C&#111;nsolas;">);<br><br>Regards,<br>&nbsp;Oleksandr Lebed</span>]]>
   </description>
   <pubDate>Wed, 21 Jun 2017 05:58:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23366&amp;PID=75893&amp;title=bug-in-handling-ini-resources#75893</guid>
  </item> 
  <item>
   <title><![CDATA[Bug in handling .ini resources : There appears to be a bug introduced...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23366&amp;PID=75885&amp;title=bug-in-handling-ini-resources#75885</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8906">andreypir</a><br /><strong>Subject:</strong> 23366<br /><strong>Posted:</strong> 16 June 2017 at 1:54pm<br /><br />There appears to be a bug introduced in version 17.2 and still existing in 17.3. When theme definition .ini file is included in resources, like this:&nbsp;<br><div><br></div><div>INSIGHT3_THEME_INI TEXTFILE MOVEABLE PURE "Res/Insight3Theme.ini"</div><div><br></div><div>it is ignored. The settings are loaded correctly by&nbsp;<i><span style="font-size:9.5pt;line-height:115%;  font-family:C&#111;nsolas;mso-fareast-font-family:Calibri;mso-fareast-theme-font:  minor-latin;color:blue;mso-ansi-:EN-US;mso-fareast-:EN-US;  mso-bidi-:AR-SA">CXTPResourceImages</span></i><span style="font-size: 9.5pt; line-height: 115%; font-family: C&#111;nsolas;">::</span><span style="font-size: 9.5pt; line-height: 115%; font-family: C&#111;nsolas; color: rgb136, 0, 0;">LoadResources&nbsp;</span>(called from the main frame constructor)<span style="font-size: 9.5pt; line-height: 115%; font-family: C&#111;nsolas; color: rgb136, 0, 0;">,&nbsp;</span>but&nbsp;<b><i><span style="font-size:9.5pt;line-height:115%;font-family:C&#111;nsolas;mso-fareast-font-family:  Calibri;mso-fareast-theme-font:minor-latin;color:navy;mso-ansi-:EN-US;  mso-fareast-:EN-US;mso-bidi-:AR-SA">m_strIniFileName&nbsp;</span></i></b>is not initialized and remains empty. When later a theme is set, for example</div><div><br></div><div><i><span style="font-size:9.5pt;line-height:115%;  font-family:C&#111;nsolas;mso-fareast-font-family:Calibri;mso-fareast-theme-font:  minor-latin;color:blue;mso-ansi-:EN-US;mso-fareast-:EN-US;  mso-bidi-:AR-SA">CXTPPaintManager</span></i><span style="font-size: 9.5pt; line-height: 115%; font-family: C&#111;nsolas;">::</span><i><span style="font-size:9.5pt;line-height:115%;font-family:C&#111;nsolas;mso-fareast-font-family:  Calibri;mso-fareast-theme-font:minor-latin;color:#880000;mso-ansi-:  EN-US;mso-fareast-:EN-US;mso-bidi-:AR-SA">SetTheme</span></i><span style="font-size: 9.5pt; line-height: 115%; font-family: C&#111;nsolas;">(</span><i><span style="font-size:9.5pt;line-height:115%;font-family:C&#111;nsolas;mso-fareast-font-family:  Calibri;mso-fareast-theme-font:minor-latin;color:#A000A0;mso-ansi-:  EN-US;mso-fareast-:EN-US;mso-bidi-:AR-SA">xtpThemeVisualStudio2012Dark</span></i><span style="font-size: 9.5pt; line-height: 115%; font-family: C&#111;nsolas;">)</span></div><div><span style="font-size: 9.5pt; line-height: 115%; font-family: C&#111;nsolas;"><br></span></div><div>the code tries to use the loaded .ini file, but&nbsp;<i><span style="font-size:9.5pt;line-height:115%;  font-family:C&#111;nsolas;mso-fareast-font-family:Calibri;mso-fareast-theme-font:  minor-latin;color:#880000;mso-ansi-:EN-US;mso-fareast-:EN-US;  mso-bidi-:AR-SA">XTPIniColor&nbsp;</span></i>is NOP because&nbsp;<i><span style="font-size:9.5pt;line-height:115%;  font-family:C&#111;nsolas;mso-fareast-font-family:Calibri;mso-fareast-theme-font:  minor-latin;color:#880000;mso-ansi-:EN-US;mso-fareast-:EN-US;  mso-bidi-:AR-SA">XTPResourceImages</span></i><span style="font-size: 9.5pt; line-height: 115%; font-family: C&#111;nsolas;">()-&gt;</span><i><span style="font-size:9.5pt;line-height:115%;font-family:C&#111;nsolas;mso-fareast-font-family:  Calibri;mso-fareast-theme-font:minor-latin;color:navy;mso-ansi-:EN-US;  mso-fareast-:EN-US;mso-bidi-:AR-SA">m_strIniFileName</span></i><span style="font-size: 9.5pt; line-height: 115%; font-family: C&#111;nsolas;">.</span><i><span style="font-size:9.5pt;line-height:115%;font-family:C&#111;nsolas;mso-fareast-font-family:  Calibri;mso-fareast-theme-font:minor-latin;color:#880000;mso-ansi-:  EN-US;mso-fareast-:EN-US;mso-bidi-:AR-SA">IsEmpty</span></i><span style="font-size: 9.5pt; line-height: 115%; font-family: C&#111;nsolas;">().&nbsp;</span>As a result .ini file theme customization is lost.</div><div><span style="font-size: 9.5pt; line-height: 115%; font-family: C&#111;nsolas;"><br></span></div><div>A simple work around is to initialize&nbsp;<b><i><span style="font-size: 9.5pt; line-height: 14.5667px; font-family: C&#111;nsolas; color: navy;">m_strIniFileName&nbsp;</span></i></b>before a call to SetTheme, for example</div><div><br></div><div><i><span style="font-size:9.5pt;line-height:115%;  font-family:C&#111;nsolas;mso-fareast-font-family:Calibri;mso-fareast-theme-font:  minor-latin;color:#880000;mso-ansi-:EN-US;mso-fareast-:EN-US;  mso-bidi-:AR-SA">XTPResourceImages</span></i><span style="font-size: 9.5pt; line-height: 115%; font-family: C&#111;nsolas;">()-&gt;</span><i><span style="font-size:9.5pt;line-height:115%;font-family:C&#111;nsolas;mso-fareast-font-family:  Calibri;mso-fareast-theme-font:minor-latin;color:navy;mso-ansi-:EN-US;  mso-fareast-:EN-US;mso-bidi-:AR-SA">m_strIniFileName</span></i><span style="font-size: 9.5pt; line-height: 115%; font-family: C&#111;nsolas;"> </span><span style="font-size:9.5pt;line-height:115%;font-family:C&#111;nsolas;mso-fareast-font-family:  Calibri;mso-fareast-theme-font:minor-latin;color:teal;mso-ansi-:EN-US;  mso-fareast-:EN-US;mso-bidi-:AR-SA">=</span><span style="font-size: 9.5pt; line-height: 115%; font-family: C&#111;nsolas;"> </span><span style="font-size:9.5pt;line-height:115%;font-family:C&#111;nsolas;mso-fareast-font-family:  Calibri;mso-fareast-theme-font:minor-latin;color:#A000A0;mso-ansi-:  EN-US;mso-fareast-:EN-US;mso-bidi-:AR-SA">_T</span><span style="font-size: 9.5pt; line-height: 115%; font-family: C&#111;nsolas;">(</span><span style="font-size:9.5pt;line-height:115%;font-family:C&#111;nsolas;mso-fareast-font-family:  Calibri;mso-fareast-theme-font:minor-latin;color:#A31515;mso-ansi-:  EN-US;mso-fareast-:EN-US;mso-bidi-:AR-SA">"INSIGHT3_THEME_INI"</span><span style="font-size: 9.5pt; line-height: 115%; font-family: C&#111;nsolas;">);</span></div><div><span style="font-size: 9.5pt; line-height: 115%; font-family: C&#111;nsolas;"><br></span></div><div>I believe a bugfix should either set&nbsp;<i><span style="font-size: 9.5pt; line-height: 14.5667px; font-family: C&#111;nsolas; color: navy;">m_strIniFileName&nbsp;</span></i>in&nbsp;<i><span style="font-size: 9.5pt; line-height: 14.5667px; font-family: C&#111;nsolas; color: blue;">CXTPResourceImages</span></i><span style="font-size: 9.5pt; line-height: 14.5667px; font-family: C&#111;nsolas;">::</span><span style="font-size: 9.5pt; line-height: 14.5667px; font-family: C&#111;nsolas; color: rgb136, 0, 0;">LoadResources&nbsp;</span>or change logic of&nbsp;<i><span style="font-size: 9.5pt; line-height: 14.5667px; font-family: C&#111;nsolas; color: rgb136, 0, 0;">XTPIniColor</span></i><span style="color: rgb136, 0, 0; font-family: C&#111;nsolas; font-size: 9.5pt;">.</span></div>]]>
   </description>
   <pubDate>Fri, 16 Jun 2017 13:54:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23366&amp;PID=75885&amp;title=bug-in-handling-ini-resources#75885</guid>
  </item> 
 </channel>
</rss>