To do what you want : x associate a function to the OnClick event of your Settings menu item (using the tabs of its property windows for example) -> this will generate automatically the function inside the MainFrm. H and . Cpp files x instantiate a member structure, or variables you want to get from your hardware inside your CCStatsDlg class .
H and . Cpp x fill your variables inside the OnOK () function of your CCStatsDlg class x add one or more functions inside your CCStatsDlg . H and .
Cpp files like : int GetValue1() x call your dialogbox with : CCStatsDlg dlg (); if dlg. DoModal () == IDOK { // Here you can get your variables values once OK is clicked inside your dialog box int value1 = dlg. GetValue1 () } Hope this will help.
Thanks so much for the reply. – Vaish Mar 30 at 2:05 while reading the variable some problem is there CSettings dlg; if (dlg. DoModal () == IDOK) {int m_SampleNumber = dlg.
Getvalue ();} This I am doing in CCStatsDlg class because I need to process CSettings dialog values here. M_SampleNumber is initialized to 1024 in the CCStatsDlg class constructor. Below is the getvalue() in CSettings class int CSettings::getvalue() { return SampleNumber;} Even if I return 2048 as SampleNumber, m_SampleNumber in CCStatsDlg is not getting which is always 1024 which was initaised in constructor – Vaish Mar 30 at 2:25 @Vaish I do not understand your problem.
Can you edit your first post with your new code. – oaimac Mar 31 at 9:29.
So you need create new CDialog derived window and then show it. Put this code to on click event: CMySettingDialog dlg; dlg.DoModal(); Some sample you can find here and here.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.