Click here to Skip to main content
15,917,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help from VB programmers Pin
#realJSOP6-Jul-04 9:22
professional#realJSOP6-Jul-04 9:22 
GeneralRe: Help from VB programmers Pin
Michael P Butler7-Jul-04 3:30
Michael P Butler7-Jul-04 3:30 
GeneralRe: Help from VB programmers Pin
#realJSOP7-Jul-04 3:33
professional#realJSOP7-Jul-04 3:33 
GeneralRe: Help from VB programmers Pin
Michael P Butler7-Jul-04 8:08
Michael P Butler7-Jul-04 8:08 
GeneralRe: Help from VB programmers Pin
#realJSOP7-Jul-04 16:06
professional#realJSOP7-Jul-04 16:06 
GeneralRe: Help from VB programmers Pin
Michael P Butler7-Jul-04 22:19
Michael P Butler7-Jul-04 22:19 
Generalproblems with forcibly closing the .exe Pin
ask_you5-Jul-04 23:12
ask_you5-Jul-04 23:12 
GeneralRe: problems with forcibly closing the .exe Pin
#realJSOP5-Jul-04 23:54
professional#realJSOP5-Jul-04 23:54 
Firstly, the application that i developed closes forcibly when i press ENTER. which event should i handle so that the the application does respond to ENTER command.

My guess is that you are writing a dialog-based app and there's an OK button in it. The easy way to prevent the program from closing when you hit ENTER is to

1) change the ID of the OK button from IDOK to IDC_OK

2) Delete the OnOK handler from your code.

3) Add a new handler for IDC_OK.

Of course, there may be other ways to accomplish the same end, but I'm not really in a position to suggest anything more complex right now.

----------
Secondly, from the task manager when i select my application and do end process, the application closes forcibly. Which event should i handle in these case so that my app does some clean-up operation which i would like to do on exit.


Handdle cleanup in the destructor of the dialog if possible. If you need to, you can also use the destructor for the app, or even OnExitInstance.




------- sig starts

"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt

"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
GeneralRe: problems with forcibly closing the .exe Pin
ask_you6-Jul-04 0:07
ask_you6-Jul-04 0:07 
GeneralRe: problems with forcibly closing the .exe Pin
#realJSOP6-Jul-04 0:09
professional#realJSOP6-Jul-04 0:09 
GeneralRe: problems with forcibly closing the .exe Pin
ask_you6-Jul-04 0:28
ask_you6-Jul-04 0:28 
GeneralRe: problems with forcibly closing the .exe Pin
V.6-Jul-04 0:25
professionalV.6-Jul-04 0:25 
GeneralRe: problems with forcibly closing the .exe Pin
ask_you6-Jul-04 0:37
ask_you6-Jul-04 0:37 
GeneralRe: problems with forcibly closing the .exe Pin
V.6-Jul-04 1:12
professionalV.6-Jul-04 1:12 
GeneralRe: problems with forcibly closing the .exe Pin
David Crow6-Jul-04 2:45
David Crow6-Jul-04 2:45 
GeneralRe: problems with forcibly closing the .exe Pin
Maximilien6-Jul-04 2:58
Maximilien6-Jul-04 2:58 
GeneralRe: problems with forcibly closing the .exe Pin
#realJSOP6-Jul-04 3:32
professional#realJSOP6-Jul-04 3:32 
GeneralGetting Installed BHOs Pin
Liger_Zero_X5-Jul-04 23:10
Liger_Zero_X5-Jul-04 23:10 
GeneralRe: Getting Installed BHOs Pin
2249176-Jul-04 0:30
2249176-Jul-04 0:30 
GeneralRe: Getting Installed BHOs Pin
Liger_Zero_X6-Jul-04 0:56
Liger_Zero_X6-Jul-04 0:56 
GeneralRe: Getting Installed BHOs Pin
xcavin6-Jul-04 1:45
xcavin6-Jul-04 1:45 
GeneralRe: Getting Installed BHOs Pin
Liger_Zero_X6-Jul-04 2:11
Liger_Zero_X6-Jul-04 2:11 
GeneralRe: Getting Installed BHOs Pin
Michael P Butler6-Jul-04 1:44
Michael P Butler6-Jul-04 1:44 
GeneralRegisterDevice Pin
IceBerG715-Jul-04 23:05
IceBerG715-Jul-04 23:05 
Generalmalloc/free to new /delete error Pin
mcsherry5-Jul-04 22:45
mcsherry5-Jul-04 22:45 

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.