Solved

multithreading in MDI

Posted on 1998-03-31
1
456 Views
Last Modified: 2010-05-18
I want to realize multithread in MDI,in which each thread
have a doc/view architecture,just like the primary thread,
how can I make it?
0
Comment
Question by:iamtiger
1 Comment
 

Accepted Solution

by:
footloose earned 200 total points
ID: 1183969
I am assuming you want to create a thread each time File/New is clicked.

Override OnInitInstance of the view class, and after regular initialization, have it call theApp.NewThreadFunction( someParams ). Use someParams to tie this view to the thread which will be created soon.

In theApp.NewThreadFunction(), create the thread and pass the information from someParams so that the thread can communicate with its view.

be careful about passing window handles between threads.

0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Handle Exceptions during instantiation 28 415
Issue accessing member variable of atomic class 16 116
C++ Language error 28 214
designing in object programming 12 75
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question