Discussion:
threads in doc/view
(too old to reply)
g***@gmail.com
2007-09-06 10:32:44 UTC
Permalink
Hi Folks,

If I create a thread in the single document of teh MDI application and
with that if I control the application would it be a bad design ? Say
I am controlling the source which is sending the data to the document
fronm that thread ?
I know its a bizarre idea unless I have multiple instances of the
documents. But I have a single instance of the document through out
the session and I might have multiple threads inside that document
which would update the views .

Please help

Thanking in advance,
JLD
Sheng Jiang[MVP]
2007-09-18 04:00:06 UTC
Permalink
You may want to check out the MTMDI sample in MSDN.
Post by g***@gmail.com
Hi Folks,
If I create a thread in the single document of teh MDI application and
with that if I control the application would it be a bad design ? Say
I am controlling the source which is sending the data to the document
fronm that thread ?
I know its a bizarre idea unless I have multiple instances of the
documents. But I have a single instance of the document through out
the session and I might have multiple threads inside that document
which would update the views .
Please help
Thanking in advance,
JLD
RainMan
2007-11-11 23:18:00 UTC
Permalink
It is impossible to have one document instance in MDI application unless you
write substantial amount of code to support it. The question: would it be
practical?

MDI application instantiates new document, view and frame every time new
document is requested.

You usually have one document type but multiple instances of that type. That
is why this type on an app is called MDI.
--
RainMan
Post by g***@gmail.com
Hi Folks,
If I create a thread in the single document of teh MDI application and
with that if I control the application would it be a bad design ? Say
I am controlling the source which is sending the data to the document
fronm that thread ?
I know its a bizarre idea unless I have multiple instances of the
documents. But I have a single instance of the document through out
the session and I might have multiple threads inside that document
which would update the views .
Please help
Thanking in advance,
JLD
Loading...