![]() |
CXTPPopupBar::PumpMessage() |
Post Reply ![]() |
Author | |
goldfish40 ![]() Newbie ![]() Joined: 21 October 2008 Status: Offline Points: 1 |
![]() ![]() ![]() ![]() ![]() Posted: 21 October 2008 at 9:30am |
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()->PreTranslateMessage(). Would it be possible in future versions to check for NULL state thread? Like:
if (NULL == AfxGetThread () ||
( NULL != AfxGetThread () &&! AfxGetThread()->PreTranslateMessage(&msg))){ // process this message:: TranslateMessage(&msg);:: DispatchMessage(&msg);} Does that makes sense? It works fine this way. Thank you! |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Something wrong with your code. AfxGetThread should return something.
You have add some CWinApp derived class.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |