suppose you have l_DailogData in your MyProjectDoc.cpp. suppose Its type is CString.Now what you have to do is
1.Add a member variable to your CresultDlg class, CString m_DailogData
2.write a member function of your CresultDlg class
void SetData(CString str)
{
m_DailogData = str;
}
3.call this function in your MyProjectDoc.cpp
CresultDlg ResDlg;
ResDlg.SetData(l_DailogData);
ResDlg.DoModal();
4.write an OnInitDialog()function of your CresultDlg class
BOOL CresultDlg::OnInitDialog()
{
:
:
:
}