I am creating a modal dialog box and dynamically creating textboxes based on a user specified quantity. I then store the values of these textboxes in a vector
vector <CString*> textBoxText;
I want to pass the vector back when the dialog closes. I tried passing a pointer into the dialog and updating the pointer in: void CRadioDialog::OnBnClickedOk(). However, that did not work. I don’t think I can do this with data exchange, is there a way for it to be done?
Thanks,
Thanks for all the help, I ended up using this method which was very easy and recommended from a different forum:
I added this into the dialog.h file:
and called it in my main view: