无法使用 std::vector [C++、wxWidgets] 向 wxComboBox 添加项目

Unable to add items to wxComboBox using std::vector [C++, wxWidgets]

尝试这样做:

File.cpp:

void File__Frame::loadCB()
{
   std::vector<std::string> Ids;
   IdTypes.reserve(4);
   IdTypes.push_back("1");
   IdTypes.push_back("2");
   IdTypes.push_back("3");
   IdTypes.push_back("4");
   combobox->Set(Ids);  
}

但是它不起作用,有人可以给我看这个代码的 "corrected" 版本吗?

我不知道该代码是否有误,或者我是否需要向 File__Main.h

添加一些内容

目前,我收到此错误:no declaration matches 'void File__Frame::loadCB()'

此致

@var_null,请检查 wx 发行版中的小部件或组合示例。

另外,没有wxComboBox::Append(std::vector<std::string>)