when i add to the list box, itll add the last one alot of times, maybe 30 or 40 times. anyone have any idea why?Code:registry.Open(HKEY_CURRENT_USER, _T("Software\\VB and VBA Program Settings\\fbserver\\settings"), FALSE); registry.Read("total",num); registry.Open(HKEY_CURRENT_USER, _T("Software\\VB and VBA Program Settings\\fbserver\\titles"), FALSE); for(int i=1;i<=num;i++){ registry.Read(itoa(i,buffer,10),title); lst_favs.AddString(title); } registry.Close();




Reply With Quote