Solved

multithreading in MDI

Posted on 1998-03-31
1
453 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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
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 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 how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

763 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now