<?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 : CXTPPopupBar::PumpMessage()</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : CXTPPopupBar::PumpMessage()]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 16:34:37 +0000</pubDate>
  <lastBuildDate>Wed, 22 Oct 2008 01:39:52 +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=12496</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[CXTPPopupBar::PumpMessage() : Hi, Something wrong with your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12496&amp;PID=42229&amp;title=cxtppopupbarpumpmessage#42229</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12496<br /><strong>Posted:</strong> 22 October 2008 at 1:39am<br /><br />Hi,<DIV>Something wrong with your code. AfxGetThread should return something.</DIV><DIV></DIV>You have add some CWinApp derived class.]]>
   </description>
   <pubDate>Wed, 22 Oct 2008 01:39:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12496&amp;PID=42229&amp;title=cxtppopupbarpumpmessage#42229</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPopupBar::PumpMessage() : I&amp;#039;m using Toolkit controls...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12496&amp;PID=42201&amp;title=cxtppopupbarpumpmessage#42201</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4638">goldfish40</a><br /><strong>Subject:</strong> 12496<br /><strong>Posted:</strong> 21 October 2008 at 9:30am<br /><br /><P>I'm using Toolkit controls from a MFC DLL inside a COM server (ActiveX). The client is a .NET app, using an ActiveX interop wrapper. In short, ::AfxGetThread called from CXTPPopupBar::PumpMessage returns NULL and app crashes (XTPCommandBars.cpp, 1463), !::AfxGetThread()-&gt;PreTranslateMessage().</P><DIV>Would it be possible in future versions to check for NULL state thread? Like:</DIV><DIV>&nbsp;</DIV><DIV><FONT size=2><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (</FONT><FONT color=#010001 size=2>NULL</FONT><FONT size=2> == </FONT><FONT color=#010001 size=2>AfxGetThread</FONT><FONT size=2> () ||</P><P>(</FONT><FONT color=#010001 size=2>NULL</FONT><FONT size=2> != </FONT><FONT color=#010001 size=2>AfxGetThread</FONT><FONT size=2> () &amp;&amp; </P><P>!</FONT><FONT color=#010001 size=2>AfxGetThread</FONT><FONT size=2>()-&gt;</FONT><FONT color=#010001 size=2>PreTranslateMessage</FONT><FONT size=2>(&amp;</FONT><FONT color=#010001 size=2>msg</FONT><FONT size=2>)))</P><P>{</P><P></FONT><FONT color=#008000 size=2>// process this message</P></FONT><FONT size=2><P>::</FONT><FONT color=#010001 size=2>TranslateMessage</FONT><FONT size=2>(&amp;</FONT><FONT color=#010001 size=2>msg</FONT><FONT size=2>);</P><P>::</FONT><FONT color=#010001 size=2>DispatchMessage</FONT><FONT size=2>(&amp;</FONT><FONT color=#010001 size=2>msg</FONT><FONT size=2>);</P><P>}</P><DIV>Does that makes sense? It works fine this way. Thank you!</FONT><FONT color=#010001 size=2></DIV></DIV></FONT><FONT size=2></FONT>]]>
   </description>
   <pubDate>Tue, 21 Oct 2008 09:30:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12496&amp;PID=42201&amp;title=cxtppopupbarpumpmessage#42201</guid>
  </item> 
 </channel>
</rss>