i am having a problem with combo boxes in c++.
i am making a very simple game for a subject at uni, in this game you pick up guns and shoot monsters. each gun has attributes; damage range and name.
when you pick up a gun it is meant to be added to the gunSelection combo box, where u can then choose what gun you want to use. when a gun have run out of bullets it is removed from the list.
i have been adding the guns using
which seems to work the only problem is in the combo box selection it labels all the guns as "gun" which is the object type. I want it to the the name attribute. Does anyone know how to specify how you want the objects to be labled in the combo box.
ie. The combo box currently looks like this
where i want it to look like this
Any help would be greatly appreiated. cheers