Click here to Skip to main content
15,896,453 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Please help me! Pin
toxcct21-Jul-05 20:21
toxcct21-Jul-05 20:21 
GeneralRe: Please help me! Pin
dSolariuM22-Jul-05 7:48
dSolariuM22-Jul-05 7:48 
GeneralRe: Please help me! Pin
Gary R. Wheeler23-Jul-05 4:34
Gary R. Wheeler23-Jul-05 4:34 
GeneralKeywords Pin
Anonymous21-Jul-05 18:58
Anonymous21-Jul-05 18:58 
GeneralRe: Keywords Pin
Christian Graus21-Jul-05 19:05
protectorChristian Graus21-Jul-05 19:05 
GeneralLisBox index value Pin
a_david12321-Jul-05 18:13
a_david12321-Jul-05 18:13 
GeneralRe: LisBox index value Pin
Christian Graus21-Jul-05 18:20
protectorChristian Graus21-Jul-05 18:20 
QuestionUpdateData - Can we validate before saving it? Pin
yccheok21-Jul-05 17:25
yccheok21-Jul-05 17:25 
Hi, for the configuration setting of my application (where i store them all in a global object), i let the user change the setting through a tree property page.

however, i am facing some problem with the UpdateData. This is because UpdateData actually first save, then validate the data. However, this behavior is a bit dangerous for my case.

I associate my configuaration setting directly to the controls of the property page.

Assume

1. User enter invalid data.
2. User click apply.
3. UpdateData called. A warning box come out to tell the user that the value is not valid.
4. User re-enter valid data.
5. User click apply.
6. Everything just work fine Smile | :)

However, problem comes here.
1. User enter invalid data.
2. User click apply.
3. UpdateData called. A warning box come out to tell the user that the value is not valid.
4. User immediately close the property page dialog box. WTF | :WTF:

This time, the invalid data had been written to the global object although user had once be warned about the invalid data.

Is there any way I can first validate the control data, before the control data written in the variable?

Thank you very much!

AnswerRe: UpdateData - Can we validate before saving it? Pin
Christian Graus21-Jul-05 17:32
protectorChristian Graus21-Jul-05 17:32 
GeneralRe: UpdateData - Can we validate before saving it? Pin
yccheok21-Jul-05 19:45
yccheok21-Jul-05 19:45 
GeneralRe: UpdateData - Can we validate before saving it? Pin
toxcct21-Jul-05 20:24
toxcct21-Jul-05 20:24 
AnswerRe: UpdateData - Can we validate before saving it? Pin
Blake Miller22-Jul-05 4:12
Blake Miller22-Jul-05 4:12 
GeneralCompile program C++ by Visual C++.NET Pin
SAKURAVN21-Jul-05 16:31
SAKURAVN21-Jul-05 16:31 
GeneralRe: Compile program C++ by Visual C++.NET Pin
Christian Graus21-Jul-05 16:32
protectorChristian Graus21-Jul-05 16:32 
GeneralRe: Compile program C++ by Visual C++.NET Pin
SAKURAVN21-Jul-05 17:03
SAKURAVN21-Jul-05 17:03 
GeneralRe: Compile program C++ by Visual C++.NET Pin
Christian Graus21-Jul-05 17:15
protectorChristian Graus21-Jul-05 17:15 
GeneralRe: Compile program C++ by Visual C++.NET Pin
SAKURAVN21-Jul-05 17:52
SAKURAVN21-Jul-05 17:52 
GeneralRe: Compile program C++ by Visual C++.NET Pin
Christian Graus21-Jul-05 17:59
protectorChristian Graus21-Jul-05 17:59 
GeneralRe: Compile program C++ by Visual C++.NET Pin
SAKURAVN21-Jul-05 18:22
SAKURAVN21-Jul-05 18:22 
GeneralRe: Compile program C++ by Visual C++.NET Pin
Christian Graus21-Jul-05 18:34
protectorChristian Graus21-Jul-05 18:34 
QuestionHow to insert a number into table in oracle Pin
zwzcode21-Jul-05 15:02
zwzcode21-Jul-05 15:02 
AnswerRe: How to insert a number into table in oracle Pin
Christian Graus21-Jul-05 15:07
protectorChristian Graus21-Jul-05 15:07 
GeneralRe: how to get the lpCmdLine?thanks! Pin
Christian Graus21-Jul-05 15:06
protectorChristian Graus21-Jul-05 15:06 
GeneralRe: how to get the lpCmdLine?thanks! Pin
Rick York22-Jul-05 16:59
mveRick York22-Jul-05 16:59 
GeneralUpgrading to Visual C++.Net 2005 Pin
desmondling7821-Jul-05 14:31
desmondling7821-Jul-05 14: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.