Good day to all!

i created a CDialog class CReportUI which is dynamically setting up its variables and dialog title called by CMainFrame class... here is my code snipet:


void CMainFrame::OnReportsManagerialreportComparativeVariance()
{
CReportUI dlgRepUI;

dlgRepUI.mc_ccType.AddString("BARANGAY");
dlgRepUI.mc_ccType.AddString("MAIN BUSINESS");
dlgRepUI.mc_ccType.AddString("OWNERSHIP KIND");
dlgRepUI.mc_ccType.AddString("BUSINESS STATUS");
dlgRepUI.mc_ccType.AddString("GROSS RANGE");
dlgRepUI.mc_ccType.AddString("CAPITAL RANGE");

dlgRepUI.DoModal();
}

CReportUI has a combo box object.... i get a debug assertion message... i also want to set the dialog title from it...