I have a structure in the document MyAppDoc.h:
struct StudInfo { public: CString f; //фамилия } I need to click on the button, the entered data is recorded in the structure StudInfo :
void MODELESS::OnBnClickedButton3() { StudInfo s; MyControl dlg2; sf = dlg2.m_familiya; if (dlg2.DoModal() == IDOK); ;// update current record }