Bars and Cold Dark Matter Halos