Solved

multithreading in MDI

Posted on 1998-03-31
1
458 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying 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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
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.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

821 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