<?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 : Language XML crash</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Language XML crash]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 14 Apr 2026 05:29:37 +0000</pubDate>
  <lastBuildDate>Wed, 23 May 2012 02:39:07 +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=19711</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[Language XML crash : Thanks for the reply... I have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19711&amp;PID=68332&amp;title=language-xml-crash#68332</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5198">SMaton</a><br /><strong>Subject:</strong> 19711<br /><strong>Posted:</strong> 23 May 2012 at 2:39am<br /><br />Thanks for the reply... I have changed the resource handling to DLLs and it doesn't crash anymore... Unfortunately it doesn't help me with the problem I tried to solve by using the language resources...<div><br></div><div>I wanted to datepicker to have the language of the application settings... and realized that Codejock relies on Win32 Common Dialogs for this (which always uses the system language; you cannot change this) :(</div><div><br></div><div>Thanks for your suggestion though</div>]]>
   </description>
   <pubDate>Wed, 23 May 2012 02:39:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19711&amp;PID=68332&amp;title=language-xml-crash#68332</guid>
  </item> 
  <item>
   <title><![CDATA[Language XML crash :   My guess is that you are failing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19711&amp;PID=68318&amp;title=language-xml-crash#68318</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=374">ddlittle</a><br /><strong>Subject:</strong> 19711<br /><strong>Posted:</strong> 22 May 2012 at 12:16pm<br /><br />My guess is that you are failing because you loaded the XML resources, rather than the .DLL.&nbsp; I think your crash is in LoadString, because the resource handle isn't set properly.&nbsp;&nbsp;&nbsp; <div>Unless strTrueFalse is undefined or returns NULL, I can't think of another reason.</div><div>&nbsp;</div><div>mit freundlichen grüßen....</div><div>&nbsp;</div><div>- David</div>]]>
   </description>
   <pubDate>Tue, 22 May 2012 12:16:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19711&amp;PID=68318&amp;title=language-xml-crash#68318</guid>
  </item> 
  <item>
   <title><![CDATA[Language XML crash : Hello everyone,my application...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19711&amp;PID=68176&amp;title=language-xml-crash#68176</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5198">SMaton</a><br /><strong>Subject:</strong> 19711<br /><strong>Posted:</strong> 04 May 2012 at 4:26am<br /><br />Hello everyone,<div><br></div><div>my application offers two languages: English and German. Upon application start the user can select one of those 2. To enable the language within Toolkit Pro, I do this:</div><div><br></div><div><div><span ="Apple-tab-span" style="white-space:pre">	</span>CString toolkitResources = ProgrammVerzeichnis() + "\\daten\\";</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>if ( !IstLaendereinstellungEnglisch())</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>{</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>toolkitResources += "ToolkitPro.ResourceDe.xml";</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>}</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>else</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>{</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>toolkitResources += "ToolkitPro.ResourceEn.xml";</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>}</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>CXTPResourceManager::m_managerInstance-&gt;SetResourceFile(toolkitResources);</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>if ( !IstLaendereinstellungEnglisch())</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>CXTPResourceManager::m_managerInstance.GetData()-&gt;SetResourceLanguage(MAKELANGID(LANG_GERMAN, SUBLANG_GERMAN));</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>else</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>CXTPResourceManager::m_managerInstance.GetData()-&gt;SetResourceLanguage(MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_UK));</div></div><div><br></div><div>When adding new items to a property grid, the application crashes in random location within the memory. I debugged it down to this lines within the toolkit:</div><div><br></div><div>CXTPPropertyGridItemBool::_Init(BOOL bValue) &nbsp;(line 76):</div><div><br></div><div>&nbsp;<span ="Apple-tab-span" style="white-space:pre">	</span>if (XTPResourceManager()-&gt;LoadString(&amp;strTrueFalse, XTP_IDS_PROPERTYGRID_TRUEFALSE)</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>&amp;&amp; (strTrueFalse.Find(_T('\n')) != -1))</div><div><br></div><div>I've digged through the documentation but I couldn't find any further information about the language handling and the SetResourceFile...</div><div><br></div><div>I've also tried to load the language file like this:</div><div><br></div><div><div><span ="Apple-tab-span" style="white-space:pre">	</span>CXTPResourceManager::m_managerInstance-&gt;SetResourceManager(new CXTPResourceManagerXML(toolkitResources));</div></div><div><br></div><div>If I don't call "SetResourceFile" or "SetResourceManager" it doesn't crash but shows the local settings...</div><div><br></div><div>Thanks for your help.</div>]]>
   </description>
   <pubDate>Fri, 04 May 2012 04:26:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19711&amp;PID=68176&amp;title=language-xml-crash#68176</guid>
  </item> 
 </channel>
</rss>