If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
WX_DECLARE_LIST(int, colorTableList);
WX_DEFINE_LIST(colorTableList);
colorTableList myColorTableList;
for (int i = 0; i < 100; i++)
{
myColorTableList.Append(&i);
}
// check data
for (int k = 0; k < myColorTableList.GetCount(); k++)
{
int r = *myColorTableList[k];
MyApp::showMessage(wxString::Format(wxT("color: %i"), r), "l");
}
The data stored and printed it's for always 99 for all the list nodes, and I can't understand why. Thanks for any help.