I am using a modeless dialog box to gather data and insert it into a CListCtrl and a CList.
I Call the modeless dialog and pass "this" as a parameter.
Inside my dialog constructer I save the the CWnd *pParent as CWnd *m_pParent.
When the user presses "OK" I call the function in my original dialog using the folowing method.
This all works fine. The problem is in my SaveData function. When it tries to access my CList or my CListCtrl I get an access violation.
I have done this same operation before in another app and it worked fine. Anyone see a problem with what I am doing here?