usually you would have to map the m_Name variable to the dialog and call UpdateData( FALSE )
...
m_pSheet->SetActivePage( [something other than the index for page 1] );
m_page1.m_strName = "John Doe";
m_pSheet->SetActivePage( page1Index ); //** this will call
update data false...
or
m_pSheet->SetActivePage( page1Index );
m_page1.m_strName = "John Doe";
m_page1.UpdateData( FALSE ); //call true to retrieve the value
the problem with this is is that the call will give you all kinds of errors in m_page1 is not currently the active page....
the index of the pages depends on the order in which they were added 0 - n....
so in order to update the second page for instance...
m_pSheet->SetActivePage( 1 );
m_page1.m_name = "John Doe";
m_page1.UpdateData( FALSE );
....if your variables are not mapped...
you can do this...
m_pSheet->SetActivePage( 0 );
m_page1.SetDlgItemText( IDC_EDIT_NAME, m_page1.m_strName );
and to retrieve it
m_page1.GetDlgItemText( IDC_EDIT_NAME, m_page1.m_strName);
m_page2
...
you can download a demo from my website.... it is related and might help you out....
www.vvm.com/~fzamora/DaoDemo.zip
.....