Ok, you'll need to add variables to the dialog class to represent the values in the dialog's edit boxes. You'll generally make a member variable to hold values for each control on the dialog. It's best to let the class wizard do this by right-clicking on the control (edit box) and select ClassWizard. On the Member Variables tab, select the edit box from the list and click the Add Variable button. The Category should be 'value', and the Variable Type should be CString. Name the variable whatever u want and 'OK' out of the ClassWizard.
MFC will automatically populate the member variables with the values in the controls for you when CDialog::OnOK() is called (which calls DoDataExchange() to do the actual transfer). IAW the variables won't hold the right values until the OK button is clicked, so don't get bit by that

The code you use to show the dialog and get the info from the edit boxes could look something like this:
CMyDialog* Dlg;
if (Dlg->DoModal() == IDOK)
{
// get new values from the dialog here
MyStrVar1 = Dlg->m_sVar1;
MyStrVar2 = Dlg->m_sVar2;
}
You can set the dialog's initial values the same way, DoDataExchange() will populate the controls from the member variables when you call DoModal():
CMyDialog* Dlg;
Dlg->m_sVar1 = MyStrVar1;
Dlg->m_sVar2 = MyStrVar2;
Dlg->DoModal();
Does that answer ur question?
~Mike
Any man willing to sacrifice liberty for security deserves neither liberty nor security.
-Ben Franklin