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

C / C++ / MFC

 
GeneralRe: Memory leak Pin
Janine15-Aug-02 2:47
Janine15-Aug-02 2:47 
GeneralRe: Memory leak Pin
Steen Krogsgaard15-Aug-02 3:39
Steen Krogsgaard15-Aug-02 3:39 
GeneralRe: Memory leak Pin
Janine15-Aug-02 4:15
Janine15-Aug-02 4:15 
GeneralRemove RETURN and ESCAPE action from dialog Pin
Anonymous14-Aug-02 23:57
Anonymous14-Aug-02 23:57 
GeneralRe: Remove RETURN and ESCAPE action from dialog Pin
567890123415-Aug-02 2:05
567890123415-Aug-02 2:05 
GeneralRe: Remove RETURN and ESCAPE action from dialog Pin
PJ Arends15-Aug-02 11:10
professionalPJ Arends15-Aug-02 11:10 
GeneralCatching Dialog Box Errors Pin
gm_coll14-Aug-02 23:52
gm_coll14-Aug-02 23:52 
GeneralRe: Catching Dialog Box Errors Pin
Tomasz Sowinski15-Aug-02 0:07
Tomasz Sowinski15-Aug-02 0:07 
gm_coll wrote:
I have edit boxes with doubles mapped to them so when letters are entered and the button is pressed the application automatically generates a MessageBox asking the user to enter a number

This is implemented in DDX_Text function. Calls to DDX_xxx functions are inserted in CYourDlg::DoDataExchange by ClassWizard. Unfortunately, there's no notification going back to your app when validation fails - MFC just displays a message box and throws CUserException, which is later catched in CWnd::UpdateData.

You basically have two options: catching CUserException (and throwing it again with argument-less 'throw') or doing data transfer/validation without DDX_ routines.

Tomasz Sowinski -- http://www.shooltz.com

Never argue with an idiot, he'll bring you to his level and beat you with experience.

GeneralRe: Catching Dialog Box Errors Pin
gm_coll15-Aug-02 0:32
gm_coll15-Aug-02 0:32 
GeneralRe: Catching Dialog Box Errors Pin
Tomasz Sowinski15-Aug-02 0:38
Tomasz Sowinski15-Aug-02 0:38 
GeneralRe: Catching Dialog Box Errors Pin
gm_coll15-Aug-02 1:09
gm_coll15-Aug-02 1:09 
GeneralRe: Catching Dialog Box Errors Pin
Tomasz Sowinski15-Aug-02 1:12
Tomasz Sowinski15-Aug-02 1:12 
GeneralRe: Catching Dialog Box Errors - ignore previous post Pin
Tomasz Sowinski15-Aug-02 1:13
Tomasz Sowinski15-Aug-02 1:13 
GeneralRe: Catching Dialog Box Errors - ignore previous post Pin
gm_coll15-Aug-02 1:25
gm_coll15-Aug-02 1:25 
GeneralRe: Catching Dialog Box Errors - ignore previous post Pin
Tomasz Sowinski15-Aug-02 1:31
Tomasz Sowinski15-Aug-02 1:31 
GeneralRe: Catching Dialog Box Errors - ignore previous post Pin
gm_coll15-Aug-02 1:52
gm_coll15-Aug-02 1:52 
GeneralRe: Catching Dialog Box Errors - ignore previous post Pin
Tomasz Sowinski15-Aug-02 2:00
Tomasz Sowinski15-Aug-02 2:00 
GeneralSmart Pointer implementation question Pin
pankajdaga14-Aug-02 23:50
pankajdaga14-Aug-02 23:50 
GeneralRe: Smart Pointer implementation question Pin
Tomasz Sowinski14-Aug-02 23:59
Tomasz Sowinski14-Aug-02 23:59 
GeneralRe: Smart Pointer implementation question Pin
pankajdaga16-Aug-02 1:45
pankajdaga16-Aug-02 1:45 
GeneralRe: Smart Pointer implementation question Pin
Stuart Dootson15-Aug-02 11:15
professionalStuart Dootson15-Aug-02 11:15 
GeneralRe: Smart Pointer implementation question Pin
pankajdaga16-Aug-02 1:43
pankajdaga16-Aug-02 1:43 
GeneralRe: Smart Pointer implementation question Pin
Stuart Dootson16-Aug-02 9:39
professionalStuart Dootson16-Aug-02 9:39 
GeneralSomething changed in MFC in VC7.0 Pin
Mukkie14-Aug-02 22:53
Mukkie14-Aug-02 22:53 
Questionis it possible? Pin
shakir14-Aug-02 21:31
shakir14-Aug-02 21:31 

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.