I’m trying to populate a ComboBox from an array of const CStrings, i.e.:
const char gm_prog_names[136][24] = {
"1 Piano 1",
"2 Piano 2",
"3 Piano 3",
"4 HonkeyTonk",
[...] };
(I realize there are likely better ways to store this data, but I’ve got some old code I’m porting here.)
I can do this when creating a ComboBox:
StringArray menuList = std::initializer_list< const char * >{"1", "2", "3", "4", "5", "6", "7", "8"};
programCB.addItemList (menuList, 1);
…but I can’t figure out the correct syntax to assign it from the stored CString array.