ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.
One of a set of tools we're offering as a way to say thank you for being a part of the community.
If they come from CDialog1 then do everything internally there.
A general method would be
in CDialog1 have a public member variable of type CStringArray m_arszListBoxContents;
void CDialogTestApp::OnTest1()
{
CDialog1 d1;
d1.m_arszListBoxContents.A
d1.m_arszListBoxContents.A
d1.DoModal();
}
then in the OnInitDialog of CDialog1 loop throught the contents of the array and add them as you did before to the listbox