<?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 : translations not showing on toolbar for help about</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : translations not showing on toolbar for help about]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 01:07:01 +0000</pubDate>
  <lastBuildDate>Thu, 11 Jul 2024 04:26:03 +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=24486</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[translations not showing on toolbar for help about : Hello,Have you solved your problem?Regards,Artem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24486&amp;PID=78971&amp;title=translations-not-showing-on-toolbar-for-help-about#78971</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9012">agontarenko</a><br /><strong>Subject:</strong> 24486<br /><strong>Posted:</strong> 11 July 2024 at 4:26am<br /><br /><div>Hello,</div><div><br></div><div>Have you solved your problem?<br></div><div><br></div><div>Regards,</div><div>Artem Gontarenko<br></div>]]>
   </description>
   <pubDate>Thu, 11 Jul 2024 04:26:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24486&amp;PID=78971&amp;title=translations-not-showing-on-toolbar-for-help-about#78971</guid>
  </item> 
  <item>
   <title><![CDATA[translations not showing on toolbar for help about : Fyi - I figured out the problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24486&amp;PID=78970&amp;title=translations-not-showing-on-toolbar-for-help-about#78970</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9665">RyanCoder</a><br /><strong>Subject:</strong> 24486<br /><strong>Posted:</strong> 04 July 2024 at 4:00pm<br /><br />Fyi - I figured out the problem with why our program was crashing after loading the xml file contents from a xml resource file in the executable. I was declaring the "xtpXMLNode" as a local variable. It needed to be an allocated object that doesn't get deallocated until CXTPResourceManager gets closed/destroyed...<div><br></div><div><br><div>Fixed example code is below:</div><div><br></div><div><div>CString sResXML = L"&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\n"&nbsp;</div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>"&lt;resource CompactMode=\"1\" Language=\"German (Germany)\" LANGID=\"1031\"&gt;\n"&nbsp;</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>"&lt;string id=\"57670\" value=\"Zeigt Hilfe zum aktuellen Vorgang oder Befehl an.\\nHilfe\"/&gt;\n"</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>"&lt;string id=\"57664\" value=\"Programminformationen, Versionsnummer und Urheberrechte anzeigen\\nDie Info\"/&gt;\n"</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>"&lt;string id=\"57607\" value=\"Drucken des aktiven Dokuments\\nDrucken\"/&gt;\n"</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>"&lt;string id=\"57669\" value=\"Anzeigen der Hilfe für Schaltflächen, Menüs und Fenster, die angeklickt wurden\\nHilfe\"/&gt;\n"</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>"&lt;/resource&gt;";</span></div><div><span style="white-space: pre;">				</span></div><div><b>pXtpXMLNode = std::make_unique&lt;CXTPPropExchangeXMLNode&gt;(TRUE, NULL, L"resource");</b><span style="white-space:pre"><b>	</b>		</span></div><div>pXtpXMLNode-&gt;LoadFromString(sResXML);</div><div>CXTPResourceManager* pResMgr = XTPResourceManager();</div><div>if (pResMgr)</div><div>{</div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>CXTPPropExchangeXMLNode *ppp = pXtpXMLNode.release();</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>XTPResourceManager()-&gt;SetResourceManager(new CXTPResourceManagerXML(ppp));<span style="white-space:pre">				</span></span></div><div>}</div></div><div><br></div><div><br></div></div>]]>
   </description>
   <pubDate>Thu, 04 Jul 2024 16:00:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24486&amp;PID=78970&amp;title=translations-not-showing-on-toolbar-for-help-about#78970</guid>
  </item> 
  <item>
   <title><![CDATA[translations not showing on toolbar for help about : I took the sample program &amp;#034;MultiLangCommandBars&amp;#034;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24486&amp;PID=78969&amp;title=translations-not-showing-on-toolbar-for-help-about#78969</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9665">RyanCoder</a><br /><strong>Subject:</strong> 24486<br /><strong>Posted:</strong> 04 July 2024 at 12:29pm<br /><br /><div>I took the sample program "MultiLangCommandBars" and replaced function "CMultiLangCommandBarsApp::SetLocale" with this code below:</div><div><br></div><div><div>BOOL CMultiLangCommandBarsApp::SetLocale(LCID Locale, LPCTSTR szLocale, LPCTSTR szFileName,</div><div><span style="white-space: normal;"><span style="white-space:pre">										</span> BOOL bIsRTL)</span></div><div>{</div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>if (szFileName)</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>{</span></div><div><span style="white-space: normal;"><span style="white-space:pre">		</span>if (CXTPPropExchangeXMLNode::IsXMLSupported()) // Try to load from XML. Needs IE 4.0</span></div><div><span style="white-space: normal;"><span style="white-space:pre">													</span>&nbsp; &nbsp;// installed</span></div><div><span style="white-space: normal;"><span style="white-space:pre">		</span>{</span></div><div><span style="white-space: normal;"><span style="white-space:pre">			</span>CString strPath;</span></div><div><span style="white-space: normal;"><span style="white-space:pre">			</span>VERIFY(::GetModuleFileName(AfxGetApp()-&gt;m_hInstance,</span></div><div><span style="white-space: normal;"><span style="white-space:pre">									</span>&nbsp; &nbsp;strPath.GetBufferSetLength(_MAX_PATH), _MAX_PATH));</span></div><div><span style="white-space: normal;"><span style="white-space:pre">			</span>strPath.ReleaseBuffer();</span></div><div><br></div><div><span style="white-space: normal;"><span style="white-space:pre">			</span>int nIndex = strPath.ReverseFind(_T('\\'));</span></div><div><span style="white-space: normal;"><span style="white-space:pre">			</span>if (nIndex &gt; 0)</span></div><div><span style="white-space: normal;"><span style="white-space:pre">				</span>strPath = strPath.Left(nIndex + 1);</span></div><div><span style="white-space: normal;"><span style="white-space:pre">			</span>else</span></div><div><span style="white-space: normal;"><span style="white-space:pre">				</span>strPath.Empty();</span></div><div><br></div><div><span style="white-space: normal;"><span style="white-space:pre">			</span>strPath = strPath + _T("Translations\\") + szFileName + _T(".xml");</span></div><div><br></div><div><b>// My code changes are bolded below:</b></div><div><span style="white-space: normal;"><span style="white-space:pre">			</span><b>CString sResXML = L"&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\n"&nbsp;</b></span></div><div><span style="white-space: normal;"><b><span style="white-space:pre">				</span>"&lt;resource CompactMode=\"1\" Language=\"German (Germany)\" LANGID=\"1031\"&gt;\n"&nbsp;</b></span></div><div><span style="white-space: normal;"><b><span style="white-space:pre">				</span>"&lt;string id=\"57670\" value=\"Zeigt Hilfe zum aktuellen Vorgang oder Befehl an.\\nHilfe\"/&gt;\n"</b></span></div><div><span style="white-space: normal;"><b><span style="white-space:pre">				</span>"&lt;string id=\"57664\" value=\"Programminformationen, Versionsnummer und Urheberrechte anzeigen\\nDie Info\"/&gt;\n"</b></span></div><div><span style="white-space: normal;"><b><span style="white-space:pre">				</span>"&lt;string id=\"57607\" value=\"Drucken des aktiven Dokuments\\nDrucken\"/&gt;\n"</b></span></div><div><span style="white-space: normal;"><b><span style="white-space:pre">				</span>"&lt;string id=\"57669\" value=\"Anzeigen der Hilfe für Schaltflächen, Menüs und Fenster, die angeklickt wurden\\nHilfe\"/&gt;\n"</b></span></div><div><span style="white-space: normal;"><b><span style="white-space:pre">				</span>"&lt;/resource&gt;";</b></span></div><div><b><br></b></div><div><span style="white-space: normal;"><b><span style="white-space:pre">			</span>CXTPPropExchangeXMLNode xtpXMLNode(TRUE, NULL, L"resource");</b></span></div><div><span style="white-space: normal;"><b><span style="white-space:pre">			</span>xtpXMLNode.LoadFromString(sResXML);</b></span></div><div><span style="white-space: normal;"><b><span style="white-space:pre">			</span>CXTPResourceManager* pResMgr = XTPResourceManager();</b></span></div><div><span style="white-space: normal;"><b><span style="white-space:pre">			</span>if (pResMgr)</b></span></div><div><span style="white-space: normal;"><b><span style="white-space:pre">			</span>{</b></span></div><div><span style="white-space: normal;"><b><span style="white-space:pre">				</span>// commented out code below works.&nbsp;</b></span></div><div><span style="white-space: normal;"><b><span style="white-space:pre">				</span>//CString strPath(_T("c:\\temp\\MultiLangCommandBars.ResourceDe.xml"));</b></span></div><div><span style="white-space: normal;"><b><span style="white-space:pre">				</span>//CXTPResourceManagerXML* p = new CXTPResourceManagerXML(strPath);</b></span></div><div><span style="white-space: normal;"><b><span style="white-space:pre">				</span>//XTPResourceManager()-&gt;SetResourceManager(p);</b></span></div><div><b><br></b></div><div><span style="white-space: normal;"><b><span style="white-space:pre">				</span>// Code below has errors later in our code as resource id <span style="white-space:pre">		</span></b></span></div><div><span style="white-space: normal;"><b><span style="white-space:pre">				</span>pResMgr-&gt;SetResourceManager(new CXTPResourceManagerXML(&amp;xtpXMLNode));</b></span></div><div><span style="white-space: normal;"><b><span style="white-space:pre">			</span>}</b></span></div><div><br></div><div><span style="white-space: normal;"><span style="white-space:pre">		<b>	</b></span><b>//if (!XTPResourceManager()-&gt;SetResourceManager(new CXTPResourceManagerXML(strPath)))</b></span></div><div><span style="white-space: normal;"><b><span style="white-space:pre">			</span>//<span style="white-space:pre">	</span>return FALSE;</b></span></div><div><span style="white-space: normal;"><span style="white-space:pre">		</span>}</span></div><div><span style="white-space: normal;"><span style="white-space:pre">		</span>else</span></div><div><span style="white-space: normal;"><span style="white-space:pre">		</span>{</span></div><div><span style="white-space: normal;"><span style="white-space:pre">			</span>CString strPath;</span></div><div><span style="white-space: normal;"><span style="white-space:pre">			</span>VERIFY(::GetModuleFileName(AfxGetApp()-&gt;m_hInstance,</span></div><div><span style="white-space: normal;"><span style="white-space:pre">									</span>&nbsp; &nbsp;strPath.GetBufferSetLength(_MAX_PATH), _MAX_PATH));</span></div><div><span style="white-space: normal;"><span style="white-space:pre">			</span>strPath.ReleaseBuffer();</span></div><div><br></div><div><span style="white-space: normal;"><span style="white-space:pre">			</span>int nIndex = strPath.ReverseFind(_T('\\'));</span></div><div><span style="white-space: normal;"><span style="white-space:pre">			</span>if (nIndex &gt; 0)</span></div><div><span style="white-space: normal;"><span style="white-space:pre">				</span>strPath = strPath.Left(nIndex + 1);</span></div><div><span style="white-space: normal;"><span style="white-space:pre">			</span>else</span></div><div><span style="white-space: normal;"><span style="white-space:pre">				</span>strPath.Empty();</span></div><div><br></div><div><span style="white-space: normal;"><span style="white-space:pre">			</span>strPath = strPath + _T("Translations\\") + szFileName + _T(".dll");</span></div><div><br></div><div><span style="white-space: normal;"><span style="white-space:pre">			</span>XTPResourceManager()-&gt;SetResourceManager(new CXTPResourceManager());</span></div><div><span style="white-space: normal;"><span style="white-space:pre">			</span>XTPResourceManager()-&gt;SetResourceFile(strPath);</span></div><div><span style="white-space: normal;"><span style="white-space:pre">		</span>}</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>}</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>else</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>{</span></div><div><span style="white-space: normal;"><span style="white-space:pre">		</span>if (!XTPResourceManager()-&gt;SetResourceManager(new CXTPResourceManager()))</span></div><div><span style="white-space: normal;"><span style="white-space:pre">			</span>return FALSE;</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>}</span></div><div><br></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>::SetThreadLocale(MAKELCID(Locale, SORT_DEFAULT));</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>::_tsetlocale(LC_ALL, szLocale);</span></div><div><br></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>m_curLanguage = Locale;</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>SetRTLLayout(bIsRTL);</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>ReloadDefaultMenu();</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>return TRUE;</span></div><div>}</div></div>lpszSection = 0x0000024069d50cd8 L"menu&#091;@id = \"129\"&#093;"<div><br></div><div><div><br></div><div>BOOL CXTPPropExchangeXMLNode::IsSectionExists(LPCTSTR lpszSection)</div><div>{</div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>if (!OnBeforeExchange())</span></div><div><span style="white-space: normal;"><span style="white-space:pre">		</span>return FALSE;</span></div><div><br></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>CXTPDOMNodePtr xmlNodePtr;</span></div><div><br></div><div><b>// Exception is thrown here:</b></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span><b>HRESULT hr = m_xmlSectionNode-&gt;raw_selectSingleNode(CT2BSTR(lpszSection), &amp;xmlNodePtr);</b></span></div><div><br></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>if (FAILED(hr) || xmlNodePtr == NULL)</span></div><div><span style="white-space: normal;"><span style="white-space:pre">		</span>return FALSE;</span></div><div><br></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>return TRUE;</span></div><div>}</div></div><div><br></div><div>When I run the application I get the exception below:</div><div><br></div><div>Exception thrown at 0x00007FFD2D03F2E2 (msxml3.dll) in MultiLangCommandBars.exe: 0xC0000005: Access violation reading location 0x0000000000000000.</div><div><br></div><div>CallStack:</div><div><br></div><div><div>&gt;<span style="white-space:pre">	</span>msxml3.dll!Model::Model(struct TLSDATA *,class Object *)<span style="white-space:pre">	</span>Unknown</div><div>&nbsp;<span style="white-space:pre">	</span>msxml3.dll!OMReadLock::OMReadLock(struct TLSDATA *,class DOMNode *)<span style="white-space:pre">	</span>Unknown</div><div>&nbsp;<span style="white-space:pre">	</span>msxml3.dll!DOMNode::selectSingleNode(unsigned short *,struct IXMLDOMNode * *)<span style="white-space:pre">	</span>Unknown</div><div>&nbsp;<span style="white-space:pre">	</span>MultiLangCommandBars.exe!CXTPPropExchangeXMLNode::IsSectionExists(const wchar_t * lpszSection) Line 756<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>MultiLangCommandBars.exe!CXTPResourceManagerXML::LoadMenuW(CMenu * lpMenu, unsigned int nIDResource) Line 1213<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>MultiLangCommandBars.exe!CMainFrame::ResetCommandBars() Line 161<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>MultiLangCommandBars.exe!CMultiLangCommandBarsApp::ReloadDefaultMenu() Line 391<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>MultiLangCommandBars.exe!CMultiLangCommandBarsApp::SetLocale(unsigned long Locale, const wchar_t * szLocale, const wchar_t * szFileName, int bIsRTL) Line 291<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>MultiLangCommandBars.exe!CMultiLangCommandBarsApp::OnLanguageGerman() Line 316<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>MultiLangCommandBars.exe!CMultiLangCommandBarsApp::InitInstance() Line 166<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>&#091;External Code&#093;<span style="white-space:pre">	</span></div><div>&nbsp;<span style="white-space:pre">	</span>MultiLangCommandBars.exe!wWinMain(HINSTANCE__ * hInstance, HINSTANCE__ * hPrevInstance, wchar_t * lpCmdLine, int nCmdShow) Line 26<span style="white-space:pre">	</span>C++</div><div>&nbsp;<span style="white-space:pre">	</span>&#091;External Code&#093;<span style="white-space:pre">	</span></div></div><div><br></div><div>Does anyone have an idea's on what is wrong?</div><div><br></div><div>Thanks,</div>]]>
   </description>
   <pubDate>Thu, 04 Jul 2024 12:29:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24486&amp;PID=78969&amp;title=translations-not-showing-on-toolbar-for-help-about#78969</guid>
  </item> 
  <item>
   <title><![CDATA[translations not showing on toolbar for help about : 	CString sResXML = &amp;#034;&amp;lt;?xml...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24486&amp;PID=78968&amp;title=translations-not-showing-on-toolbar-for-help-about#78968</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9665">RyanCoder</a><br /><strong>Subject:</strong> 24486<br /><strong>Posted:</strong> 04 July 2024 at 11:52am<br /><br /><div><div><br></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>CString sResXML = "&lt;?xml version="1.0" encoding="utf-8"?&gt;</span></div><div>&lt;resource CompactMode="1" Language="German (Germany)" LANGID="1031"&gt;</div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>&lt;string id="57670" value="Zeigt Hilfe zum aktuellen Vorgang oder Befehl an.\nHilfe"/&gt;</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>&lt;string id="57664" value="Programminformationen, Versionsnummer und Urheberrechte anzeigen\nDie Info"/&gt;</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>&lt;string id="57607" value="Drucken des aktiven Dokuments\nDrucken"/&gt;<span style="white-space:pre">	</span></span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>&lt;string id="57669" value="Anzeigen der Hilfe für Schaltflächen, Menüs und Fenster, die angeklickt wurden\nHilfe"/&gt;</span></div><div>&lt;/resource&gt;";</div><div><span style="white-space: normal;"><span style="white-space:pre">	</span> <span style="white-space:pre">	</span></span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>CXTPPropExchangeXMLNode xtpXMLNode(TRUE, NULL, L"resource");</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>xtpXMLNode.LoadFromString(sResXML);</span></div><div><span style="white-space: pre; white-space: normal;">	</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>CXTPResourceManager *pResMgr = XTPResourceManager();</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>if (pResMgr)</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>{</span></div><div><span style="white-space: normal;"><span style="white-space:pre">		</span>// commented out code below works.&nbsp;</span></div><div><span style="white-space: normal;"><span style="white-space:pre">		</span>//CString strPath(_T("c:\\temp\\MultiLangCommandBars.ResourceDe.xml"));</span></div><div><span style="white-space: normal;"><span style="white-space:pre">		</span>//CXTPResourceManagerXML* p = new CXTPResourceManagerXML(strPath);</span></div><div><span style="white-space: normal;"><span style="white-space:pre">		</span>//XTPResourceManager()-&gt;SetResourceManager(p);</span></div><div><br></div><div><span style="white-space: normal;"><span style="white-space:pre">		</span>// Code below has errors later in our code as resource id <span style="white-space:pre">		</span></span></div><div><span style="white-space: normal;"><span style="white-space:pre">		</span>pResMgr-&gt;SetResourceManager(new CXTPResourceManagerXML(&amp;xtpXMLNode));</span></div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>}</span></div></div>]]>
   </description>
   <pubDate>Thu, 04 Jul 2024 11:52:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24486&amp;PID=78968&amp;title=translations-not-showing-on-toolbar-for-help-about#78968</guid>
  </item> 
  <item>
   <title><![CDATA[translations not showing on toolbar for help about : I have a C++/MFC application that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24486&amp;PID=78967&amp;title=translations-not-showing-on-toolbar-for-help-about#78967</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9665">RyanCoder</a><br /><strong>Subject:</strong> 24486<br /><strong>Posted:</strong> 03 July 2024 at 8:24pm<br /><br />I have a C++/MFC application that has a CXTPToolbar. All The tooltips when I hover over the toolbar icons show correctly except for ones with ID's "ID_CONTEXT_HELP", "ID_FILE_PRINT", "ID_HELP" and "ID_APP_ABOUT". We have an resource file (.rc file) for english and one for every other language German, French, Spanish, etc. The toolbar icon's tooltip with ID with "ID_SHIFT_LEFT" works. An example of how I set the description/tooltip text in rc files below :&nbsp;<div><br></div><div>In file "AAA.rc"<div><br></div><div>STRINGTABLE</div><div>BEGIN</div><div>&nbsp; &nbsp; ID_SHIFT_FLEFT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Find Data Left\nFind Data Left"</div><div><br></div><div><div>ID_FILE_PRINT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"Print the active document\nPrint"</div><div>&nbsp; &nbsp; ID_CONTEXT_HELP&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"Context help\nContext help"</div></div><div>END</div><div><br></div><div>---------------------</div><div><br></div><div>in file "AAA_deu.rc"</div><div>STRINGTABLE</div><div>BEGIN</div><div><span style="white-space: normal;"><span style="white-space:pre">	</span>ID_SHIFT_FLEFT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Verbleibende Daten suchen\nVerbleibende Daten suchen"</span></div><div><span style="white-space: normal;"><br></span></div><div><div style="">&nbsp; &nbsp; &nbsp; &nbsp; ID_HELP&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"Zeigt Hilfe zum aktuellen Vorgang oder Befehl an.\nHilfe"</div><div style=""><span style="white-space: normal;"><span style="white-space:pre">	</span>ID_APP_ABOUT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Programminformationen, Versionsnummer und Urheberrechte anzeigen\nDie Info"</span></div><div style=""><span style="white-space: normal;"><span style="white-space:pre">	</span>ID_FILE_PRINT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"Drucken des aktiven Dokuments\nDrucken"</span></div><div style=""><span style="white-space: normal;"><span style="white-space: pre;">	</span>ID_CONTEXT_HELP&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"Anzeigen der Hilfe für Schaltflächen, Menüs und Fenster, die angeklickt wurden\nKontexthilfe"</span></div></div><div>END</div><div><br></div><div>I am assuming there is something special that XTP is doing with the toolbar buttons with these id's "ID_CONTEXT_HELP", "ID_FILE_PRINT", "ID_HELP" and "ID_APP_ABOUT"?</div><div><br></div><div>I have looked at XTP example program "MultiLangCommandBars" at "\Program Files (x86)\Codejock Software\MFC\Xtreme ToolkitPro v22.1.0\Samples\CommandBars\MultiLangCommandBars\" and I see this example is loading resources from xml files for each language. I tried to do something similar in my program but I don't want to ship the application with xml files. I would like the xml file contents in the resource of the executable. When I use code below it appears to work as the tooltip text is set but later in our application an error about resource with id "&lt;string id="9148" value="\nOptionen für Symbolleisten"/&gt;" (german xml file MultiLangCommandBars.ResourceDe.xml) is missing... If I load in the xml resource file from disk, instead of from resources in executable the tooltip works and I don't get the error about id="9148". Could this be a bug in XTP Toolkit? Is it possible to load the xml from a resource in the executable?</div><div><br></div><div>error is in code :</div><div><br></div><div><p style="margin:0in;font-family:Calibri;font-size:11.0pt"><br></p><p style="margin:0in;font-family:Calibri;font-size:11.0pt">&nbsp;</p><p style="margin:0in;font-family:Calibri;font-size:11.0pt">BOOLCXTPResourceManagerXML::LoadString(CString* pString, UINT nIDResource)</p><p style="margin:0in;font-family:Calibri;font-size:11.0pt">{</p><p style="margin:0in;margin-left:.375in;font-family:Calibri;font-size:11.0pt">if(!m_bValid || m_pResourceRoot == NULL)</p><p style="margin:0in;margin-left:.75in;font-family:Calibri;font-size:11.0pt">returnCXTPResourceManager::LoadString(pString, nIDResource);</p><p style="margin:0in;font-family:Calibri;font-size:11.0pt">&nbsp;</p><p style="margin:0in;margin-left:.375in;font-family:Calibri;font-size:11.0pt">CStringstrPattern;</p><p style="margin:0in;margin-left:.375in;font-family:Calibri;font-size:11.0pt">strPattern.Format(_T("string&#091;@id= \"%i\"&#093;"), nIDResource);</p><p style="margin:0in;margin-left:.375in;font-family:Calibri;font-size:11.0pt"><br></p><p style="margin:0in;font-family:Calibri;font-size:11.0pt">&nbsp;// DEBUG! strPattern = L"string&#091;@id = \"9148\"&#093;"</p><p style="margin:0in;margin-left:.375in;font-family:Calibri;font-size:11.0pt"><span style="font-weight:bold">if (!m_pResourceRoot-&gt;IsSectionExists(strPattern))&nbsp;</span></p><p style="margin:0in;margin-left:.75in;font-family:Calibri;font-size:11.0pt">returnCXTPResourceManager::LoadString(pString, nIDResource);</p><p style="margin:0in;font-family:Calibri;font-size:11.0pt">&nbsp;</p><p style="margin:0in;margin-left:.375in;font-family:Calibri;font-size:11.0pt">CXTPPropExchangeSectionsecString(m_pResourceRoot-&gt;GetSection(strPattern));</p><p style="margin:0in;margin-left:.375in;font-family:Calibri;font-size:11.0pt">PX_String(&amp;secString,_T("value"), *pString);</p><p style="margin:0in;font-family:Calibri;font-size:11.0pt">&nbsp;</p><p style="margin:0in;margin-left:.375in;font-family:Calibri;font-size:11.0pt">returnTRUE;</p><p style="margin:0in;font-family:Calibri;font-size:11.0pt">}</p><p style="margin:0in;font-family:Calibri;font-size:11.0pt"><br></p></div><div>I can see if I can come up a small example program if this helps.</div><div><br></div><div>Thanks,</div><div><br></div></div>]]>
   </description>
   <pubDate>Wed, 03 Jul 2024 20:24:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24486&amp;PID=78967&amp;title=translations-not-showing-on-toolbar-for-help-about#78967</guid>
  </item> 
 </channel>
</rss>