Click here to Skip to main content
15,903,201 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: AfxBeginThread() with a function in the main class Pin
Mark Salsbery3-Aug-07 8:14
Mark Salsbery3-Aug-07 8:14 
QuestionRe: AfxBeginThread() with a function in the main class Pin
Johpoke3-Aug-07 8:27
Johpoke3-Aug-07 8:27 
AnswerRe: AfxBeginThread() with a function in the main class Pin
Mark Salsbery3-Aug-07 8:34
Mark Salsbery3-Aug-07 8:34 
GeneralRe: AfxBeginThread() with a function in the main class Pin
Johpoke3-Aug-07 8:40
Johpoke3-Aug-07 8:40 
GeneralRe: AfxBeginThread() with a function in the main class Pin
Mark Salsbery3-Aug-07 8:57
Mark Salsbery3-Aug-07 8:57 
GeneralRe: AfxBeginThread() with a function in the main class Pin
Mark Salsbery3-Aug-07 8:13
Mark Salsbery3-Aug-07 8:13 
QuestionPostThreadMessages lost in DLL Pin
PaulCammy3-Aug-07 5:54
PaulCammy3-Aug-07 5:54 
AnswerRe: PostThreadMessages lost in DLL Pin
Mark Salsbery3-Aug-07 6:07
Mark Salsbery3-Aug-07 6:07 
This doesn't sound like it would work.

A DLL that has a CWinApp object is supported, but that CWinApp object doesn't have its own message pump.
I wouldn't expect any messages to be processed in the DLL's CWinApp object unless you've tweaked something
to do so.

Here's what the docs state about this situation:

"Note that the CWinApp::Run mechanism does not apply to a DLL, because the application owns the main message pump.
If your DLL brings up modeless dialogs or has a main frame window of its own, your application's main message pump must
call a DLL-exported routine that calls CWinApp::PreTranslateMessage.
"


Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

QuestionRe: PostThreadMessages lost in DLL Pin
PaulCammy4-Aug-07 1:52
PaulCammy4-Aug-07 1:52 
AnswerRe: PostThreadMessages lost in DLL Pin
Mark Salsbery4-Aug-07 6:42
Mark Salsbery4-Aug-07 6:42 
GeneralRe: PostThreadMessages lost in DLL Pin
PaulCammy5-Aug-07 22:23
PaulCammy5-Aug-07 22:23 
GeneralRe: PostThreadMessages lost in DLL Pin
Blake Miller6-Aug-07 5:06
Blake Miller6-Aug-07 5:06 
GeneralRe: PostThreadMessages lost in DLL Pin
Mark Salsbery6-Aug-07 5:06
Mark Salsbery6-Aug-07 5:06 
Questiondifferentiating between literal strings and char pointers [modified] Pin
dburns3-Aug-07 4:48
dburns3-Aug-07 4:48 
AnswerRe: differentiating between literal strings and char pointers Pin
CPallini3-Aug-07 4:59
mveCPallini3-Aug-07 4:59 
GeneralRe: differentiating between literal strings and char pointers Pin
dburns3-Aug-07 5:03
dburns3-Aug-07 5:03 
GeneralRe: differentiating between literal strings and char pointers Pin
CPallini3-Aug-07 5:07
mveCPallini3-Aug-07 5:07 
GeneralRe: differentiating between literal strings and char pointers Pin
dburns3-Aug-07 5:13
dburns3-Aug-07 5:13 
GeneralRe: differentiating between literal strings and char pointers Pin
CPallini3-Aug-07 5:19
mveCPallini3-Aug-07 5:19 
GeneralRe: differentiating between literal strings and char pointers Pin
dburns3-Aug-07 5:48
dburns3-Aug-07 5:48 
GeneralRe: differentiating between literal strings and char pointers Pin
David Crow3-Aug-07 6:11
David Crow3-Aug-07 6:11 
GeneralRe: differentiating between literal strings and char pointers Pin
dburns3-Aug-07 6:22
dburns3-Aug-07 6:22 
GeneralRe: differentiating between literal strings and char pointers Pin
led mike3-Aug-07 7:16
led mike3-Aug-07 7:16 
GeneralRe: differentiating between literal strings and char pointers Pin
David Crow3-Aug-07 7:18
David Crow3-Aug-07 7:18 
GeneralRe: differentiating between literal strings and char pointers Pin
led mike3-Aug-07 7:15
led mike3-Aug-07 7:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.