| | |
Quit abruptly in MFC app
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2004
Posts: 12
Reputation:
Solved Threads: 1
Hi,
I am new to MFC and have been practicing and currently have run into a problem: I have a "Quit" button and its mapped to a function already but how do I abruptly end the program? What function do I call?
Thank you,
Mitchell H.
EDIT: Ive just added this and it works, but i'll keep this thread open for input:
I am new to MFC and have been practicing and currently have run into a problem: I have a "Quit" button and its mapped to a function already but how do I abruptly end the program? What function do I call?
Thank you,
Mitchell H.
EDIT: Ive just added this and it works, but i'll keep this thread open for input:
C++ Syntax (Toggle Plain Text)
void CPrestoClose2Dlg::OnQuit() { SendMessage(WM_CLOSE); }
![]() |
Similar Threads
- afxwin.h and MFC (C++)
- Run external EXE from within an MFC dialog control (C++)
- Cannot Get Dev-C++ to compile correctly (C++)
- Is this "window" open? (C)
- Maps in VC++ 6.0 (C++)
- CSocket: How do I do this? (C++)
- Using Java in C++ (C++)
- i can't delete files (OS X)
Other Threads in the C++ Forum
- Previous Thread: help clear mess in single-scripted array
- Next Thread: C compiler help (beginner question)
| Thread Tools | Search this Thread |
api array based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count database delete deploy desktop developer dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker list loop looping loops map math memory multiple news node number numbertoword output parameter pointer problem program programming project python random read recursion recursive reference rpg sorting string strings struct temperature template test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





