I want to create a second independent window using C++/wxWidgets and I get an error "cannot create window of class wxWindowNR" at runtime and the second window doesn't show up. No compiler/linker errors.
The offending code is:
void test_gui(){ ActorDetails *ac = new ActorDetails(wxGetApp().GetTopWindow(),wxID_ANY,wxDefaultPosition,wxDefaultSize); //ActorDetails inherits wxFrame wxPanel *Panel1 = new wxPanel(ac, wxNewId(), wxPoint(256,224), wxDefaultSize, wxTAB_TRAVERSAL, _T("ID_PANEL1")); ac->Show(true); } Any idea what's going on/going wrong?
ActorDetailsctor.