Click here to Skip to main content
15,914,452 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralOut of Proc COM Interface Implementaion Help Pin
thomas_tom9917-Apr-05 23:08
thomas_tom9917-Apr-05 23:08 
GeneralRe: Out of Proc COM Interface Implementaion Help Pin
James R. Twine21-Apr-05 2:40
James R. Twine21-Apr-05 2:40 
GeneralRe: Out of Proc COM Interface Implementaion Help Pin
thomas_tom9921-Apr-05 18:48
thomas_tom9921-Apr-05 18:48 
GeneralRe: Out of Proc COM Interface Implementaion Help Pin
James R. Twine25-Apr-05 14:50
James R. Twine25-Apr-05 14:50 
GeneralMFC support problems Pin
zsombor16-Apr-05 22:30
zsombor16-Apr-05 22:30 
Generalaccess the public data members of atl class Pin
Anonymous16-Apr-05 0:17
Anonymous16-Apr-05 0:17 
GeneralRe: access the public data members of atl class Pin
ThatsAlok17-Apr-05 19:06
ThatsAlok17-Apr-05 19:06 
GeneralWTL multiple UI thread problem Pin
X-Ryl66914-Apr-05 11:24
sussX-Ryl66914-Apr-05 11:24 
Here is my problem :
I have a MainFrame (declared like any other WTL main frame). This
mainframe is creating child windows depending on user input (so at
runtime). There is nothing wrong then.
As far as I understand the child windows shares the same message loop
as the main frame (and I can verify this by printing the Thread ID in
any message handler).

It is becoming a little bit tricky now. Because I have too many child
window, the message processing takes ages to be done. So far so good,
I can create separate thread for the child windows.

So the mainframe's thread add its stack created the message loop to
the _module and run it.
The child windows' thread add their stack created message loop too and run it.

Great, it works, as long as I don't leave. When I quit the app, the
child are never destructed, and the main frame exists before the
childs (then, Winmain exits, etc)...

I don't want to add another thread just to handle the mainframe, so
how can I be sure that the child windows are stopped ?
I've thought about posting a message when a child windows exits the
loop, but this will not work as the main frame might already have
leaved its message loop.
Then I've thought about creating an event in the child window, and
setting it when the child window exits, but then again, this will not
work as the mainframe will not receive windows messages (if any
remaining) while waiting for events. Said differently, if the
mainframe miss a child window destruction, then the corresponding
event will be deleted, and the mainframe will wait indefinitively for
a never occuring event.
The only solution I could think of, would be to create a child window
event array in the main frame, and then spend some time to monitor the
events, and maintain the map.

I guess there is a easier way, but I can't figure it out.
GeneralRe: WTL multiple UI thread problem Pin
Stuart Dootson14-Apr-05 13:00
professionalStuart Dootson14-Apr-05 13:00 
GeneralRe: WTL multiple UI thread problem Pin
Jörgen Sigvardsson14-Apr-05 21:44
Jörgen Sigvardsson14-Apr-05 21:44 
GeneralRe: WTL multiple UI thread problem Pin
X-Ryl66914-Apr-05 22:23
sussX-Ryl66914-Apr-05 22:23 
GeneralRe: WTL multiple UI thread problem Pin
Stuart Dootson14-Apr-05 23:37
professionalStuart Dootson14-Apr-05 23:37 
GeneralSlim ComboBox class Pin
William Mahoney14-Apr-05 5:11
sussWilliam Mahoney14-Apr-05 5:11 
Generaly a part of data stored into previous ActiveX control loses when i insert new ActiveX Pin
ajalilqarshi13-Apr-05 5:20
ajalilqarshi13-Apr-05 5:20 
GeneralIE programming Pin
Anonymous12-Apr-05 22:49
Anonymous12-Apr-05 22:49 
QuestionSort bug with STL? Pin
starschen12-Apr-05 16:19
sussstarschen12-Apr-05 16:19 
AnswerRe: Sort bug with STL? Pin
Joaquín M López Muñoz13-Apr-05 9:23
Joaquín M López Muñoz13-Apr-05 9:23 
GeneralRe: Sort bug with STL? Pin
starschen14-Apr-05 18:05
sussstarschen14-Apr-05 18:05 
QuestionHow to get _Application pointer from _Document pointer in MS Word Pin
ajalilqarshi11-Apr-05 20:34
ajalilqarshi11-Apr-05 20:34 
GeneralTo all the WTL gurus Pin
mango_lier11-Apr-05 18:05
mango_lier11-Apr-05 18:05 
QuestionSTL from visual C++ in Unix??? Pin
knapak11-Apr-05 14:33
knapak11-Apr-05 14:33 
AnswerRe: STL from visual C++ in Unix??? Pin
ThatsAlok11-Apr-05 19:45
ThatsAlok11-Apr-05 19:45 
AnswerRe: STL from visual C++ in Unix??? Pin
Stuart Dootson11-Apr-05 20:51
professionalStuart Dootson11-Apr-05 20:51 
AnswerRe: STL from visual C++ in Unix??? Pin
markkuk12-Apr-05 0:41
markkuk12-Apr-05 0:41 
QuestionHow to activate the File-Open Dialog via ellipsis button ("...")in property browser Pin
knaster bax11-Apr-05 7:43
knaster bax11-Apr-05 7:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.