Click here to Skip to main content
15,913,487 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Difference between a Dll and an ActivexDll Pin
Saurabh.Garg6-Nov-08 21:11
Saurabh.Garg6-Nov-08 21:11 
Questiongrab the result from sql query using visual c++ 2003 Pin
Arif Liminto6-Nov-08 17:13
professionalArif Liminto6-Nov-08 17:13 
QuestionMultiple Windows Threads Pin
Bram van Kampen6-Nov-08 14:46
Bram van Kampen6-Nov-08 14:46 
AnswerRe: Multiple Windows Threads Pin
Mark Salsbery6-Nov-08 15:13
Mark Salsbery6-Nov-08 15:13 
GeneralRe: Multiple Windows Threads Pin
Bram van Kampen6-Nov-08 16:54
Bram van Kampen6-Nov-08 16:54 
GeneralRe: Multiple Windows Threads Pin
Mark Salsbery7-Nov-08 3:43
Mark Salsbery7-Nov-08 3:43 
GeneralRe: Multiple Windows Threads Pin
Bram van Kampen8-Nov-08 13:20
Bram van Kampen8-Nov-08 13:20 
GeneralRe: Multiple Windows Threads Pin
Mark Salsbery8-Nov-08 14:46
Mark Salsbery8-Nov-08 14:46 
Bram van Kampen wrote:
does the existence of a Parent CWnd Class suffice, or do we need to create the underlying window (albeit Invisible)


You don't need a parent....I was only commenting that it would
cause problems if the parent was created on a different thread than the
child.


Bram van Kampen wrote:
Any chance of a brief outline of how to do that?


From the main UI thread, create the CDialog object. Use Create()
instead of DoModal() to create the window (HWND).
Communication with the window can be done using window messages,
which can be posted from any thread.

That's definitely the safest way to use MFC windows. Smile | :)


Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Multiple Windows Threads Pin
Bram van Kampen16-Nov-08 13:21
Bram van Kampen16-Nov-08 13:21 
Question2D Arrays Pin
livin lie6-Nov-08 11:47
livin lie6-Nov-08 11:47 
AnswerRe: 2D Arrays Pin
Saurabh.Garg6-Nov-08 15:16
Saurabh.Garg6-Nov-08 15:16 
QuestionRe: 2D Arrays Pin
David Crow6-Nov-08 16:45
David Crow6-Nov-08 16:45 
AnswerRe: 2D Arrays Pin
livin lie7-Nov-08 6:21
livin lie7-Nov-08 6:21 
QuestionTutorial Object Array Pin
Reagan Conservative6-Nov-08 9:02
Reagan Conservative6-Nov-08 9:02 
AnswerRe: Tutorial Object Array Pin
sashoalm6-Nov-08 10:18
sashoalm6-Nov-08 10:18 
GeneralRe: Tutorial Object Array Pin
Reagan Conservative6-Nov-08 11:22
Reagan Conservative6-Nov-08 11:22 
QuestionI need help with my program, new c++ programmer Pin
OverdoS6-Nov-08 7:56
OverdoS6-Nov-08 7:56 
QuestionRe: I need help with my program, new c++ programmer Pin
David Crow6-Nov-08 8:17
David Crow6-Nov-08 8:17 
AnswerRe: I need help with my program, new c++ programmer Pin
CPallini6-Nov-08 10:30
mveCPallini6-Nov-08 10:30 
AnswerRe: I need help with my program, new c++ programmer Pin
led mike6-Nov-08 8:52
led mike6-Nov-08 8:52 
QuestionShellExecute/Browser problem Pin
Leslie Sanford6-Nov-08 6:19
Leslie Sanford6-Nov-08 6:19 
AnswerRe: ShellExecute/Browser problem Pin
Renjith Ramachandran6-Nov-08 7:51
Renjith Ramachandran6-Nov-08 7:51 
AnswerRe: ShellExecute/Browser problem Pin
Bram van Kampen6-Nov-08 15:16
Bram van Kampen6-Nov-08 15:16 
QuestionAdvice needed for a tool for c++ code analysis Pin
Renjith Ramachandran6-Nov-08 5:23
Renjith Ramachandran6-Nov-08 5:23 
AnswerRe: Advice needed for a tool for c++ code analysis Pin
David Crow6-Nov-08 7:22
David Crow6-Nov-08 7:22 

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.