Click here to Skip to main content
15,901,122 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralStrange Behavior with ::CreateDialogIndirect Pin
Bernhard3-Sep-03 22:20
Bernhard3-Sep-03 22:20 
GeneralRe: Strange Behavior with ::CreateDialogIndirect Pin
Iain Clarke, Warrior Programmer3-Sep-03 22:29
Iain Clarke, Warrior Programmer3-Sep-03 22:29 
GeneralRe: Strange Behavior with ::CreateDialogIndirect Pin
Bernhard3-Sep-03 22:37
Bernhard3-Sep-03 22:37 
GeneralThreads, Dialog based appl Pin
KKR3-Sep-03 21:50
KKR3-Sep-03 21:50 
GeneralRe: Threads, Dialog based appl Pin
VIKASK_773-Sep-03 23:52
VIKASK_773-Sep-03 23:52 
GeneralRe: Threads, Dialog based appl Pin
jhwurmbach4-Sep-03 2:59
jhwurmbach4-Sep-03 2:59 
QuestionHow to get the Handle of a WebCam? Pin
nwillie3-Sep-03 21:43
nwillie3-Sep-03 21:43 
GeneralStupid problem Pin
Rohit  Sinha3-Sep-03 21:17
Rohit  Sinha3-Sep-03 21:17 
Well, actually I don't even know what the problem is. Sigh | :sigh:

It's like this. I have a dialog box which reads some values from a file to initialize itself. I do this in OnInitDialog(). Fine. But when the dialog finally shows up, one of the checkboxes is not checked. I mean, it should have been, according to the settings it reads from the file. I checked the value just after reading the settings, to make sure that it's indeed getting read properly. It is. After ReadSettings() (my function which reads the settings and puts them in variables), the values are just what they should be. At the end of this function UpdateData(FALSE) is called to put these values in the controls on the dialog box to which they correspond. Things are just as they should be, except for one particular checkbox. And after UpdateData() the value of the variable is also somehow set to FALSE on its own. WTF is going on? When I try to change the settings or something, and write the new values back into the file, they get written properly, including for this checkbox. So the variable is properly connected to the control. But what happens during UpdateData(FALSE)? Or am I looking at the problem in an entirely wrong way?

I'm not a newbie or anything. But this thing has me baffled. I must be missing something very very obvious and stupid. I very rarely ask for help, but in order to save the walls around me from developing cracks from banging my head on them, I must do so now.

Suggestions, please? I need to get this done today. Doh. Stupid me.


Regards,

Rohit Sinha

Do not wait for leaders; do it alone, person to person.
- Mother Teresa


GeneralRe: Stupid problem Pin
jhwurmbach3-Sep-03 21:49
jhwurmbach3-Sep-03 21:49 
GeneralRe: Stupid problem Pin
Rohit  Sinha4-Sep-03 7:59
Rohit  Sinha4-Sep-03 7:59 
GeneralRe: Stupid problem Pin
Ted Ferenc3-Sep-03 21:55
Ted Ferenc3-Sep-03 21:55 
GeneralRe: Stupid problem Pin
David Crow4-Sep-03 3:07
David Crow4-Sep-03 3:07 
GeneralProblem with thread Pin
Majid Shahabfar3-Sep-03 20:35
Majid Shahabfar3-Sep-03 20:35 
GeneralRe: Problem with thread Pin
Magnus Westin3-Sep-03 21:08
Magnus Westin3-Sep-03 21:08 
GeneralDirectX problem Pin
SteelModule3-Sep-03 19:58
SteelModule3-Sep-03 19:58 
GeneralRe: DirectX problem Pin
JWood5-Sep-03 3:38
JWood5-Sep-03 3:38 
GeneralDetermine if System is Shutting Down/Restarting or Logging off Pin
Paul Farry3-Sep-03 19:58
professionalPaul Farry3-Sep-03 19:58 
GeneralRe: Determine if System is Shutting Down/Restarting or Logging off Pin
Dominik Reichl3-Sep-03 21:51
Dominik Reichl3-Sep-03 21:51 
GeneralHelp Experts...CString to LPCSTR conversion Pin
rohit.dhamija3-Sep-03 19:44
rohit.dhamija3-Sep-03 19:44 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
Michael Dunn3-Sep-03 19:52
sitebuilderMichael Dunn3-Sep-03 19:52 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
BhaskarBora3-Sep-03 19:54
BhaskarBora3-Sep-03 19:54 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
rohit.dhamija3-Sep-03 20:11
rohit.dhamija3-Sep-03 20:11 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
BhaskarBora3-Sep-03 20:21
BhaskarBora3-Sep-03 20:21 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
J. Dunlap3-Sep-03 20:30
J. Dunlap3-Sep-03 20:30 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
rohit.dhamija3-Sep-03 20:49
rohit.dhamija3-Sep-03 20:49 

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.