C++ Programming
04-13-2009, 11:32 AM
Hi All
How can i add string in list box fast?I have a file which have 1Lakhs lines.If am adding these line like this
if(file.Open(Name,CFile::modeRead))
{
CString strname;
while(file.end)
{
file.ReadString(strname.Trim());
if(strname.IsEmpty())
{
break;
}
else
{
m_list.InsertString(i,strname);
}
}
file.Close();
}
Then Dialog is showing notresponding.Plz help me How can i add fast.
How can i add string in list box fast?I have a file which have 1Lakhs lines.If am adding these line like this
if(file.Open(Name,CFile::modeRead))
{
CString strname;
while(file.end)
{
file.ReadString(strname.Trim());
if(strname.IsEmpty())
{
break;
}
else
{
m_list.InsertString(i,strname);
}
}
file.Close();
}
Then Dialog is showing notresponding.Plz help me How can i add fast.