<?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 : Change language - SetResourceHandle</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Change language - SetResourceHandle]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 10:46:28 +0000</pubDate>
  <lastBuildDate>Wed, 22 Aug 2012 04:52:18 +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=19936</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[Change language - SetResourceHandle : Hi,I find the solution. If we...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19936&amp;PID=68814&amp;title=change-language-setresourcehandle#68814</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1999">FSauer</a><br /><strong>Subject:</strong> 19936<br /><strong>Posted:</strong> 22 August 2012 at 4:52am<br /><br />Hi,<div>I find the solution. If we set the Resourcehandle by calling SetResourceHandle, we have to call SetUseSysIcons(TRUE), too.&nbsp;Then, the Icon will loaded successfully!</div><div><br></div>]]>
   </description>
   <pubDate>Wed, 22 Aug 2012 04:52:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19936&amp;PID=68814&amp;title=change-language-setresourcehandle#68814</guid>
  </item> 
  <item>
   <title><![CDATA[Change language - SetResourceHandle : Hi, no idea? ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19936&amp;PID=68596&amp;title=change-language-setresourcehandle#68596</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1999">FSauer</a><br /><strong>Subject:</strong> 19936<br /><strong>Posted:</strong> 12 July 2012 at 10:09am<br /><br />Hi, no idea?]]>
   </description>
   <pubDate>Thu, 12 Jul 2012 10:09:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19936&amp;PID=68596&amp;title=change-language-setresourcehandle#68596</guid>
  </item> 
  <item>
   <title><![CDATA[Change language - SetResourceHandle : By clicking &amp;#039;ignore&amp;#039;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19936&amp;PID=68593&amp;title=change-language-setresourcehandle#68593</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1999">FSauer</a><br /><strong>Subject:</strong> 19936<br /><strong>Posted:</strong> 11 July 2012 at 8:23am<br /><br />By clicking 'ignore' on exception the correct dialog (buttontext&nbsp;has german language)&nbsp;appear, but without info-icon!]]>
   </description>
   <pubDate>Wed, 11 Jul 2012 08:23:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19936&amp;PID=68593&amp;title=change-language-setresourcehandle#68593</guid>
  </item> 
  <item>
   <title><![CDATA[Change language - SetResourceHandle : Hi Oleg,I want to change the language...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19936&amp;PID=68580&amp;title=change-language-setresourcehandle#68580</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1999">FSauer</a><br /><strong>Subject:</strong> 19936<br /><strong>Posted:</strong> 10 July 2012 at 11:42am<br /><br />Hi Oleg,<div><br></div><div>I want to change the language at run time.</div><div>I get an exception, if I use the followed code:</div><div><br></div><div><div><font color="#0000ff"><span ="Apple-tab-span" style="white-space:pre">	</span>HMODULE hModule = ::LoadLibrary(</font></div><div><font color="#0000ff"><span ="Apple-tab-span" style="white-space:pre">			</span>"c:\\Program Files\\Codejock Software\\MFC\\Xtreme ToolkitPro v15.1.3.0908\\Utils\\Translations\\ToolkitPro.ResourceDe.dll");</font></div><div><font color="#0000ff"><span ="Apple-tab-span" style="white-space:pre">	</span>USHORT LangID =&nbsp;LANG_GERMAN;</font></div><div><font color="#0000ff"><span ="Apple-tab-span" style="white-space:pre">	</span>XTPResourceManager()-&gt;SetResourceHandle(hModule);</font></div><div><font color="#0000ff"><span ="Apple-tab-span" style="white-space:pre">	</span>::SetThreadLocale(MAKELCID(MAKELANGID(LangID,SUBLANG_DEFAULT), SORT_DEFAULT));&nbsp;</font></div></div><div><br></div><div><div><span ="Apple-tab-span" style="white-space:pre">	</span><font color="#0000ff">CXTPTaskDialog dlg;</font></div><div><div><font color="#0000ff"><span ="Apple-tab-span" style="white-space: pre; ">	</span>dlg.SetWindowTitle("Test");</font></div><div><font color="#0000ff"><span ="Apple-tab-span" style="white-space: pre; ">	</span>dlg.SetMainInstruction("Test...");</font></div><div><font color="#0000ff"><span ="Apple-tab-span" style="white-space: pre; ">	</span>dlg.SetContent("Info");</font></div><div><font color="#0000ff"><span ="Apple-tab-span" style="white-space: pre; ">	</span>dlg.SetCommonButtons(TDCBF_YES_BUTTON | TDCBF_NO_BUTTON);</font></div><div><font color="#0000ff"><span ="Apple-tab-span" style="white-space: pre; ">	</span>dlg.EnableCancellation(TRUE);</font></div></div><div><font color="#0000ff"><br></font></div><div>// <font color="#ff0000">the followed line causes an exception in </font>CXTPTaskDialogClient::CreateIcon<span style="color: rgb255, 0, 0; ">&nbsp;</span><font color="#ff0000">by calling&nbsp;dlg.DoModal(), because</font><span style="color: rgb255, 0, 0; ">&nbsp;</span>LoadSysIcon(lpwzIcon, sizeIcon) returned NULL<font color="#ff0000"> =&gt;&nbsp;ASSERT(hNewIcon != NULL);</font></div><div><font color="#0000ff"><span ="Apple-tab-span" style="white-space:pre">	</span>dlg.SetMainIcon((LPCWSTR)TD_INFORMATION_ICON);</font></div><div><font color="#0000ff"><br></font></div><div><span ="Apple-tab-span" style="color: rgb0, 0, 255; white-space: pre; ">	</span><span style="color: rgb0, 0, 255; ">dlg.DoModal();</span></div></div><div><br></div><div>Why does this happened?</div><div><br></div><div>Best regards</div><div>Fabian</div>]]>
   </description>
   <pubDate>Tue, 10 Jul 2012 11:42:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19936&amp;PID=68580&amp;title=change-language-setresourcehandle#68580</guid>
  </item> 
 </channel>
</rss>