Click here to Skip to main content
15,915,513 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalhmm Pin
Abin19-Jul-02 17:08
Abin19-Jul-02 17:08 
GeneralRe: hmm Pin
Christian Graus19-Jul-02 17:24
protectorChristian Graus19-Jul-02 17:24 
GeneralGreat! Thanks. Pin
Abin19-Jul-02 17:42
Abin19-Jul-02 17:42 
AnswerRe: How can I prevent application from responding to keyboard events? Pin
whelk19-Jul-02 22:25
whelk19-Jul-02 22:25 
GeneralLib. conflicts. Link Warnings! .. please advise Pin
a3gupta19-Jul-02 13:51
a3gupta19-Jul-02 13:51 
GeneralRe: Lib. conflicts. Link Warnings! .. please advise Pin
Chris Losinger19-Jul-02 18:57
professionalChris Losinger19-Jul-02 18:57 
GeneralDisable SaveFile in CEditView Pin
Anonymous19-Jul-02 13:33
Anonymous19-Jul-02 13:33 
GeneralApplication just terminates on pressing Enter Pin
a3gupta19-Jul-02 12:48
a3gupta19-Jul-02 12:48 
Hello,

I am getting the strangest error. I have a VC++ Dialog-based
application using VC++ 6.0. At one point in my
application, if I press "Enter" the application just
quits. If I press anything else of click the button to go
on a next screen etc. .. it works fine. IF I press the "X"
on top corner to quit, it asks me if I want to quit and
quits normally. But if I press Enter on that screen it
just suddenly terminates, completely blimps out!!

I doesn't happen if I press space. If I press Esc then a messagebox comes and and asks me if I want to quit the application. ...
I do have OnOk() function over ridden. and when I press Enter, the application quits before it even enters the over ridden OnOk() function. I have changed the declaration of OnOk in my .h file in many different ways. I do not have an event handler explicitly declared for OnOk function.

It doesn't happen if the focus is on one of the buttons. Then that buttons click event gets executed. It doesn't happen if I set one of the buttons to be Default Ok .. then by pressing Enter that button gets executed.

But if I have focus on any text or combo box .. and press Enter .. it just terminates the application with no warning or message.

Please help. I will really appreciate any insight into
this. Thanks
Sincerely,
anjum Gupta.

GeneralRe: Application just terminates on pressing Enter Pin
Michael Dunn19-Jul-02 16:36
sitebuilderMichael Dunn19-Jul-02 16:36 
GeneralRe: Application just terminates --- Thanks Mike. Pin
a3gupta19-Jul-02 16:41
a3gupta19-Jul-02 16:41 
Generallocal variable vs doc variable.....help! Pin
ns19-Jul-02 12:25
ns19-Jul-02 12:25 
GeneralRe: local variable vs doc variable.....help! Pin
Christian Graus19-Jul-02 12:47
protectorChristian Graus19-Jul-02 12:47 
GeneralBeyond Jeff Prosise :: MFC Pin
valikac19-Jul-02 11:50
valikac19-Jul-02 11:50 
GeneralRe: Beyond Jeff Prosise :: MFC Pin
Christian Graus19-Jul-02 12:03
protectorChristian Graus19-Jul-02 12:03 
GeneralRe: Beyond Jeff Prosise :: MFC Pin
Michael P Butler19-Jul-02 21:49
Michael P Butler19-Jul-02 21:49 
GeneralRe: Beyond Jeff Prosise :: MFC Pin
valikac20-Jul-02 4:54
valikac20-Jul-02 4:54 
Generalstrange behavior - GetClientRect Pin
ns19-Jul-02 11:31
ns19-Jul-02 11:31 
GeneralRe: strange behavior - GetClientRect Pin
Christian Graus19-Jul-02 12:04
protectorChristian Graus19-Jul-02 12:04 
GeneralRe: strange behavior - GetClientRect Pin
ns19-Jul-02 12:17
ns19-Jul-02 12:17 
GeneralRe: strange behavior - GetClientRect Pin
Christian Graus19-Jul-02 12:22
protectorChristian Graus19-Jul-02 12:22 
GeneralRe: strange behavior - GetClientRect Pin
ns19-Jul-02 12:27
ns19-Jul-02 12:27 
Questionhow do we get a pointer to an inactive view? Pin
ns19-Jul-02 11:28
ns19-Jul-02 11:28 
AnswerRe: how do we get a pointer to an inactive view? Pin
Chris Losinger19-Jul-02 12:12
professionalChris Losinger19-Jul-02 12:12 
GeneralThanks, - but what if I had 4 views? Pin
ns19-Jul-02 12:21
ns19-Jul-02 12:21 
GeneralRe: Thanks, - but what if I had 4 views? Pin
Chris Losinger19-Jul-02 13:00
professionalChris Losinger19-Jul-02 13:00 

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.