Author Topic: Generate UI with xrc file, wxChoice control operation has error.  (Read 356 times)

0 Members and 1 Guest are viewing this topic.

Offline lthcweb

  • Member
  • *
  • Posts: 1
Generate UI with xrc file, wxChoice control operation has error.
« on: September 23, 2021, 05:15:35 PM »
Generate UI with xrc file:
Code: [Select]
wxXmlResource::Get()->InitAllHandlers();
wxXmlResource::Get()->Load(wxT("res\\Launcher.xrc"));

then....

Code: [Select]
    wxChoice* gameCtrl = XRCCTRL(*this, "ID_CHOICE_GAMEPROCESS", wxChoice);
    if (gameCtrl == nullptr)
        return;
    gameCtrl->Clear();

Error Info: __vfptr==0xffffffff