Click here to Skip to main content
15,918,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow can I return a deque from a function? Pin
DanYELL29-Dec-09 5:11
DanYELL29-Dec-09 5:11 
AnswerRe: How can I return a deque from a function? Pin
CPallini29-Dec-09 5:20
mveCPallini29-Dec-09 5:20 
QuestionSaving function pointers in Map Pin
Chanchalgaud29-Dec-09 3:29
Chanchalgaud29-Dec-09 3:29 
AnswerRe: Saving function pointers in Map Pin
Richard MacCutchan29-Dec-09 4:44
mveRichard MacCutchan29-Dec-09 4:44 
AnswerRe: Saving function pointers in Map Pin
Abhi Lahare29-Dec-09 4:58
Abhi Lahare29-Dec-09 4:58 
QuestionAnyway to stop a CView from being closed? Pin
Paul Belikian29-Dec-09 3:25
Paul Belikian29-Dec-09 3:25 
AnswerRe: Anyway to stop a CView from being closed? Pin
David Crow29-Dec-09 3:31
David Crow29-Dec-09 3:31 
GeneralRe: Anyway to stop a CView from being closed? Pin
Paul Belikian29-Dec-09 4:14
Paul Belikian29-Dec-09 4:14 
Thanks David, that is a good suggestion.

I think my issue is that I'm not sure which (or what) message to hook in the view in order to wait for the event. Blush | :O The messages I've tried do not stop the view from being closed; for example, if I put a Sleep(5000) call in the view's WM_DESTROY handler, the window is still closed instantly. I need a place where the view will remain open if I delay the WM_xxxxxx message.

I'm doing this in case the user kills the app with the upper 'X' in the application's window ...perhaps I should look into that aspect. This is the only thread related thing I need to clean up. If the user doesn't kill the app while the background process is running (i.e. in the middle of loading a large database), all is well (but when do users wait for anything ? Laugh | :laugh: ), however if they do kill the app, I need to stop the views from being closed before the thread is dead. The threads can be stopped in an orderly manner at any time.

Thanks for your suggestion.

Paul
QuestionRe: Anyway to stop a CView from being closed? Pin
David Crow29-Dec-09 4:21
David Crow29-Dec-09 4:21 
AnswerRe: Anyway to stop a CView from being closed? Pin
Paul Belikian29-Dec-09 6:08
Paul Belikian29-Dec-09 6:08 
GeneralRe: Anyway to stop a CView from being closed? Pin
JudyL_MD29-Dec-09 16:50
JudyL_MD29-Dec-09 16:50 
GeneralRe: Anyway to stop a CView from being closed? Pin
Paul Belikian29-Dec-09 17:37
Paul Belikian29-Dec-09 17:37 
QuestionIdeas for an embedded interactive console? Pin
z33z29-Dec-09 3:24
z33z29-Dec-09 3:24 
AnswerRe: Ideas for an embedded interactive console? Pin
raja jamwal31-Dec-09 8:30
raja jamwal31-Dec-09 8:30 
QuestionIs there any way to execute XQuery through MFC or C++ Pin
A&Ms29-Dec-09 3:06
A&Ms29-Dec-09 3:06 
QuestionWhen my article will be publish?How many days in general? Pin
JunWang16329-Dec-09 0:29
JunWang16329-Dec-09 0:29 
AnswerWrong forum. Pin
CPallini29-Dec-09 0:47
mveCPallini29-Dec-09 0:47 
Questioncreating dbf file and reading info from dbf Pin
kir_MFC29-Dec-09 0:18
kir_MFC29-Dec-09 0:18 
QuestionRe: creating dbf file and reading info from dbf Pin
KingsGambit29-Dec-09 0:36
KingsGambit29-Dec-09 0:36 
AnswerRe: creating dbf file and reading info from dbf Pin
kir_MFC29-Dec-09 2:05
kir_MFC29-Dec-09 2:05 
GeneralRe: creating dbf file and reading info from dbf Pin
mav@octaval29-Dec-09 2:10
mav@octaval29-Dec-09 2:10 
AnswerRe: creating dbf file and reading info from dbf Pin
dxlee29-Dec-09 3:21
dxlee29-Dec-09 3:21 
AnswerRe: creating dbf file and reading info from dbf Pin
David Crow29-Dec-09 3:34
David Crow29-Dec-09 3:34 
AnswerRe: creating dbf file and reading info from dbf Pin
Hamid_RT29-Dec-09 19:34
Hamid_RT29-Dec-09 19:34 
QuestionTwo Dialogs in Application class Pin
Anu_Bala28-Dec-09 22:46
Anu_Bala28-Dec-09 22:46 

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.