GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 14-May-2008, 08:34
estebanpianolo estebanpianolo is offline
New Member
 
Join Date: May 2008
Posts: 1
estebanpianolo is on a distinguished road

problem with dialog box and multi-threading


Hello everybody

I have a problem with an application.
Its goal is to open a new dialog box every 3 minutes.
I created a thread with afxBeginThread, waiting three minutes with a waitable timer and then openning the dialog box.
But, when this thread finishes instanciating, creating and showing the dialog box, it quits. At this very moment, the dialog box also closes itself. (This works perfectly when clicking on a button on the main application.)
I saw some posts telling that it's not a good idea to use worker threads to manage UI, but I don't know how to do it in another way. Any idea???

Thanks in advance
 
 

Recent GIDBlog2nd Week of IA Training by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 15:17.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.