List Info

Thread: Combox Update




Combox Update
user name
2006-12-04 17:30:24

I am interested in taking the text typed in a text control in a dialog
box, and placing it in a combobox in the parent panel.

Let's take the following:

1. A frame/panel which has a combobox and a button. The combobox
variable name is m_combo1. The button calls a dialog box, called SubD.
2. SubD has a textcontrol and a button. The text control accepts
text. The button store the text in a public variable call T1. It
also calls a method in the frame.cpp call ACCCept();
3. ACCCept() has one line in it:
m_combo1->AppendText(T1);

This line causes an exception violation.

Thoughts?

Peter

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )