Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo box gives "syntax error : 'constant'" error

Status
Not open for further replies.

kleankutt

Programmer
Jan 17, 2006
2
GB
I'm trying to add a combo box to my application and I need to give it the data at run time. I've been following the example on the page linked below but it won't compile and gives the error message of:

syntax error : 'constant'

this relates to the line:

CComboBox *Majors = new CComboBox;



example is from this page:


Is anyone able to help me on this? Thanks in advance!

Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top