Hi
I think the problem is, that the ListCtrl in not created yet. I would do the following:
- place the code to fill the ListCtrl in OnInitDialog and give the constructor of your second dialog a pointer to the first dialog (pParent)
with this pointer you can access the data of the table,etc...