<?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 : HTML-Help window is not closing</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : HTML-Help window is not closing]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 18:50:08 +0000</pubDate>
  <lastBuildDate>Fri, 13 Nov 2009 14:01: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=15592</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[HTML-Help window is not closing : Thank you very much both of you!My...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15592&amp;PID=54838&amp;title=htmlhelp-window-is-not-closing#54838</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2192">Dieter</a><br /><strong>Subject:</strong> 15592<br /><strong>Posted:</strong> 13 November 2009 at 2:01pm<br /><br />Thank you very much both of you!<br><br>My problem is solved.<img src="http://forum.codejock.com/smileys/smiley32.gif" border="0" align="absmiddle"><br><br><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Smucker" alt="Originally posted by Smucker" style="vertical-align: text-bottom;" /> <strong>Smucker wrote:</strong><br /><br /><br><br>Another unrelated note: you can build applications compatible withWindows 98 &amp; NT4 with any later version of Visual C++, you justhave to be careful not to use any unsupported APIs or dlls, or providecode to dynamically bind for libraries/apis similarly to what you'redoing in <font color="#0000ff" face="Courier New, Courier, mono">CheckHtmlHelp()</font>. I believe Codejock has some helper routines to make this easier too.<br><br></td></tr></table><br><br>You're right, I should switch to an actual version of Visual C++.<br>Visual Studio 2008 and 2010 have so many new features, I'm using 2008  already for new applications. <br>And it becomes more and more difficult to get third party development tools which still work with Visual C++ 6.0.<br><br>]]>
   </description>
   <pubDate>Fri, 13 Nov 2009 14:01:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15592&amp;PID=54838&amp;title=htmlhelp-window-is-not-closing#54838</guid>
  </item> 
  <item>
   <title><![CDATA[HTML-Help window is not closing : Thanks, Yes it can be reason....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15592&amp;PID=54818&amp;title=htmlhelp-window-is-not-closing#54818</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 15592<br /><strong>Posted:</strong> 13 November 2009 at 3:31am<br /><br />Thanks, Yes it can be reason. We are changing RemoveAll method. <DIV>&nbsp;</DIV><DIV><a href="http://forum.codejock.com/member_profile.asp?PF=2192&amp;FID=130" target="_blank"><strong><FONT color=#000000>Dieter</FONT></strong></A> , Please temporary comment CXTPLockGuard lock(m_csObjects); inside CXTPSkinManager::RemoveAll and rebuild library.</DIV>]]>
   </description>
   <pubDate>Fri, 13 Nov 2009 03:31:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15592&amp;PID=54818&amp;title=htmlhelp-window-is-not-closing#54818</guid>
  </item> 
  <item>
   <title><![CDATA[HTML-Help window is not closing :   Here is some possible help:I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15592&amp;PID=54792&amp;title=htmlhelp-window-is-not-closing#54792</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3717">Smucker</a><br /><strong>Subject:</strong> 15592<br /><strong>Posted:</strong> 12 November 2009 at 1:35pm<br /><br />Here is some possible help:<br><br>I duplicated the problem here. The process is not exiting because of a deadlock. The main thread is in <font color="#0000ff">CXTPSkinObject::UnattachHook()</font> waiting for a <font color="#0000ff">::SendMessage()</font> to the tab control in the Help window to complete. However, the thread trying to handle that message (in&nbsp; <font color="#0000ff">CXTPSkinManager::HookWndProc() <font color="#000000">) is waiting on a critical section owned by the main thread.</font></font><br><br>Here are the relevant stacks from the threads:<br><br><i><b>Main thread:</b></i><br>...<br>USER32.dll!_SendMessageW@16+0x7f<br>thumbs8.exe!CXTPSkinObject::UnattachHook+0x57<br>thumbs8.exe!CXTPSkinManager::RemoveAll+0x98<br>thumbs8.exe!CXTPSkinManager::~CXTPSkinManager+0xfb<br>thumbs8.exe!CXTPSkinManager::`scalar deleting destructor'+0x2b<br>thumbs8.exe!CXTPSkinManager::CDestructor::~CDestructor+0x62<br>thumbs8.exe!`dynamic atexit destructor for '__xtpSkinManagerDestructor''+0x28<br>thumbs8.exe!doexit+0x10a<br>thumbs8.exe!exit+0x12<br>...<br><br><b><i>Help thread:</i></b><br>...<br>ntdll.dll!_ZwWaitForSingleObject@12+0x15<br>ntdll.dll!_RtlpWaitOnCriticalSection@8+0x155<br>ntdll.dll!_RtlEnterCriticalSection@4+0x152<br>thumbs8.exe!CXTPLockGuard::LockThread+0x31<br>thumbs8.exe!CXTPLockGuard::CXTPLockGuard+0x33<br>thumbs8.exe!CXTPSkinManager::Lookup+0x56<br>thumbs8.exe!CXTPSkinManager::HookWndProc+0x2e<br>USER32.dll!_InternalCallWinProc@20+0x23<br>USER32.dll!_UserCallWinProcCheckWow@32+0x109<br>USER32.dll!_DispatchClientMessage@24+0xe0<br>USER32.dll!___fnDWORD@4+0x2b<br>ntdll.dll!_KiUserCallbackDispatcher@12+0x2e<br>USER32.dll!__PeekMessage@24+0x88<br>USER32.dll!_PeekMessageA@20+0x142<br>hhctrl.ocx!?AWMessagePump@@YGXPAUHWND__@@@Z+0x5c<br>hhctrl.ocx!_HhWindowThread@4+0x10e<br>thumbs8.exe!CXTPSkinManagerApiHook::ThreadProcHook+0x62<br>...<br><br>One simple solution, which also helps release builds of complexapplications to exit quickly, is to simply <font color="#0000ff" face="Courier New, Courier, mono">TerminateProcess</font><font color="#0000ff" face="Courier New, Courier, mono">()</font> onceexternal resources (databases, writable files, sockets, etc.) are closed,rather than go through the many and various laborious cleanup routinesfor memory, handles, etc. However, I wouldn't recommend this on Windows9x/ME because GDI handles, color profiles, and shared memory will leak.<br><br>Another unrelated note: you can build applications compatible with Windows 98 &amp; NT4 with any later version of Visual C++, you just have to be careful not to use any unsupported APIs or dlls, or provide code to dynamically bind for libraries/apis similarly to what you're doing in <font color="#0000ff" face="Courier New, Courier, mono">CheckHtmlHelp()</font>. I believe Codejock has some helper routines to make this easier too.<br><br><br>]]>
   </description>
   <pubDate>Thu, 12 Nov 2009 13:35:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15592&amp;PID=54792&amp;title=htmlhelp-window-is-not-closing#54792</guid>
  </item> 
  <item>
   <title><![CDATA[HTML-Help window is not closing : Hi Oleg, First, I&amp;#039;m checking...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15592&amp;PID=54783&amp;title=htmlhelp-window-is-not-closing#54783</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2192">Dieter</a><br /><strong>Subject:</strong> 15592<br /><strong>Posted:</strong> 12 November 2009 at 10:05am<br /><br />Hi Oleg, <br><br>First, I'm checking with the following code if HTML help is available:<br><br><font face="Courier New, Courier, mono">CheckHtmlHelp()<br>{<br>&nbsp;&nbsp;&nbsp; BOOL bSucceeded = FALSE;<br>&nbsp;&nbsp;&nbsp; HINSTANCE hHTMLHelpInstance;<br><br>&nbsp;&nbsp;&nbsp; typedef HWND (WINAPI *FPHH) (HWND, LPCSTR, UINT, DWORD);<br>&nbsp;&nbsp;&nbsp; FPHH htmlHelp;<br><br>&nbsp;&nbsp;&nbsp; // Load hhctrl.ocx.<br>&nbsp;&nbsp;&nbsp; hHTMLHelpInstance = LoadLibrary (TEXT("hhctrl.ocx"));<br><br>&nbsp;&nbsp;&nbsp; if (hHTMLHelpInstance != NULL) <br>&nbsp;&nbsp;&nbsp; {<br>#ifdef UNICODE<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; const TCHAR *pszHtmlHelp = "HtmlHelpW";<br>#else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; const TCHAR *pszHtmlHelp = "HtmlHelpA";<br>#endif<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (FARPROC&amp;) htmlHelp = GetProcAddress(hHTMLHelpInstance, pszHtmlHelp);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (htmlHelp == NULL)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TRACE ("WARNING : hhctrl.ocx loaded but GetProcAddress failed");<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; bSucceeded = FALSE;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; bSucceeded = TRUE;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; FreeLibrary (hHTMLHelpInstance);<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; return bSucceeded;<br>}</font><br><br>Finally, I'm opening the HTML file with the following code:<br><font face="Courier New, Courier, mono">HtmlHelp(::GetDesktopWindow(), AfxGetApp()-&gt;m_pszHelpFilePath, HH_HELP_CONTEXT,  nCmd == HELP_CONTEXT ? dwData : 0)</font><br><br>I've checked today with a smaller project where I'm also using the skin framework: In this smaller project I've no problem with HTMLHelp.<br><br><br>]]>
   </description>
   <pubDate>Thu, 12 Nov 2009 10:05:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15592&amp;PID=54783&amp;title=htmlhelp-window-is-not-closing#54783</guid>
  </item> 
  <item>
   <title><![CDATA[HTML-Help window is not closing : Hi,  Show code you use to show...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15592&amp;PID=54775&amp;title=htmlhelp-window-is-not-closing#54775</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 15592<br /><strong>Posted:</strong> 12 November 2009 at 7:25am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Show code you use to show HTML help from VC6 project.</DIV>]]>
   </description>
   <pubDate>Thu, 12 Nov 2009 07:25:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15592&amp;PID=54775&amp;title=htmlhelp-window-is-not-closing#54775</guid>
  </item> 
  <item>
   <title><![CDATA[HTML-Help window is not closing : I&amp;#039;ve several applications...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15592&amp;PID=54754&amp;title=htmlhelp-window-is-not-closing#54754</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2192">Dieter</a><br /><strong>Subject:</strong> 15592<br /><strong>Posted:</strong> 11 November 2009 at 1:49pm<br /><br />I've several applications which use the Skin Framework and HTML-Help (CHM-File). <br>The applications are built with Visual C++ 6 because they have to run on older Windows operating systems (Windows 98, NT4). <br><br>With Codejock 13.0 the CHM help window has been opened and closed with skinning without any problems:<br>Also the help window closed automatically when my applications have been closed.<br><br>Now with the Codejock versions 13.1.0 and 13.2.1 the CHM help window is opened correctly, <br>but when the application is closed, the help window isn't automatically closed:<br>The help window remains about 10 seconds skinned and after 10 seconds the skinning of the help window disappears but the help window remains open. <br><br><br>Can you tell me what has been changed between Codejock 13.0 and 13.1/13.2.1 and could be now the cause for the CHM-help window problem?<br><br>]]>
   </description>
   <pubDate>Wed, 11 Nov 2009 13:49:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15592&amp;PID=54754&amp;title=htmlhelp-window-is-not-closing#54754</guid>
  </item> 
 </channel>
</rss>