Solved

multithreading in MDI

Posted on 1998-03-31
1
460 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C++ finding a sting in a char* string from a text file 3 137
Dynamically allocate memory 9 76
sorting efficency of sorting algorithm 30 149
Need some help with design 17 46
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

734 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