We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Combo Box Contents

guranimo
guranimo asked
on
Medium Priority
293 Views
Last Modified: 2013-11-20
I want the combo box data in the dropdown list to come from a database.. In the sense if I increased the database contents the dropdown box should show the added items.. How do you do this..
A sample code will be very helpful..

thanks

Comment
Watch Question

Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
The ResetContent() and AddString (), while compiling are given as error and that they are not members of CSting..

Author

Commented:
The ResetContent() and AddString (), while compiling are given as error and that they are not members of CSting..

Author

Commented:
The ResetContent() and AddString (), while compiling are given as error and that they are not members of CSting..

Author

Commented:
The ResetContent() and AddString (), while compiling are given as error and that they are not members of CSting..

Author

Commented:
The ResetContent() and AddString (), while compiling are given as error and that they are not members of CSting..

Author

Commented:
I have it initialized to CComboBox type variable but when I excecute the program it crashes at the line
m_combo.AddString(stringitem);
which leads to an assertion failure in line 751 of afxwin2.inl file where the addstring is described..
please help


thanx
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.