Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: AVIFILE and KEYFRAME Pin
Zizilamoroso10-May-02 6:51
Zizilamoroso10-May-02 6:51 
Generalpopup keyboard Pin
jimNLX10-May-02 3:56
jimNLX10-May-02 3:56 
QuestionWhere is the project's path? Pin
Hans Ruck10-May-02 3:31
Hans Ruck10-May-02 3:31 
GeneralCancel while working Pin
Vis10-May-02 3:21
Vis10-May-02 3:21 
GeneralRe: Cancel while working Pin
Hans Ruck10-May-02 3:36
Hans Ruck10-May-02 3:36 
GeneralRe: Cancel while working Pin
Vis10-May-02 3:44
Vis10-May-02 3:44 
GeneralRe: Cancel while working Pin
Hans Ruck10-May-02 3:57
Hans Ruck10-May-02 3:57 
GeneralRe: Cancel while working Pin
Prem Kumar10-May-02 3:38
Prem Kumar10-May-02 3:38 
You should give the UI chance to process the mesgs.
Put the foll. function in your app and call it
in the loop.

void CMyApp::ProcesssQueuedMsgs()
{
MSG msg ;
// User tries to close the application during a lengthy process causes a crash,
// (The window object are destroyed when this mesg is processed) so exclude WM_CLOSE.
while( PeekMessage(&msg, NULL,0,0,PM_NOREMOVE) && msg.message != WM_CLOSE )
{

AfxGetApp ()->PumpMessage () ;
}
LONG lIdle = 0;
while (AfxGetApp ()->OnIdle (lIdle++));
}

In OnCancel()
set the 'running' to false and the code will work.
GeneralRe: Cancel while working Pin
Srini Kella10-May-02 4:32
Srini Kella10-May-02 4:32 
GeneralRe: Cancel while working Pin
Prem Kumar10-May-02 4:37
Prem Kumar10-May-02 4:37 
GeneralThanks Pin
Vis16-May-02 1:48
Vis16-May-02 1:48 
GeneralRe: Cancel while working Pin
Michael Dunn10-May-02 14:53
sitebuilderMichael Dunn10-May-02 14:53 
GeneralThanks Pin
Vis15-May-02 0:48
Vis15-May-02 0:48 
Generalin MFC Pin
HoldMe10-May-02 2:54
HoldMe10-May-02 2:54 
GeneralRe: in MFC Pin
Prem Kumar10-May-02 3:47
Prem Kumar10-May-02 3:47 
GeneralRe: in MFC Pin
HoldMe10-May-02 4:31
HoldMe10-May-02 4:31 
GeneralWord Automation, open document without creating new Document Window Pin
Braulio Dez10-May-02 2:33
Braulio Dez10-May-02 2:33 
GeneralRe: Word Automation, open document without creating new Document Window Pin
Prem Kumar10-May-02 3:44
Prem Kumar10-May-02 3:44 
GeneralRe: Word Automation, open document without creating new Document Window Pin
Braulio Dez10-May-02 4:00
Braulio Dez10-May-02 4:00 
GeneralRe: Word Automation, open document without creating new Document Window Pin
Prem Kumar10-May-02 3:59
Prem Kumar10-May-02 3:59 
GeneralRe: Word Automation, open document without creating new Document Window Pin
Braulio Dez10-May-02 4:21
Braulio Dez10-May-02 4:21 
GeneralValidating network passwords through visual C++ Pin
10-May-02 1:38
suss10-May-02 1:38 
GeneralRe: Validating network passwords through visual C++ Pin
Prem Kumar10-May-02 3:47
Prem Kumar10-May-02 3:47 
GeneralRe: Validating network passwords through visual C++ Pin
Martin Ziacek10-May-02 3:59
Martin Ziacek10-May-02 3:59 
GeneralRe: Validating network passwords through visual C++ Pin
Srini Kella10-May-02 4:30
Srini Kella10-May-02 4:30 

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.