wxDialog veraltet?
-
DIALOG::DIALOG(FRAME* frame) : wxDialog(frame, wxT("Auswählen"), true) { wxButton* ok = new wxButton(this, wxID_OK, wxT("OK"), wxPoint(30, 30)); }
Visual C++ 2008 Express Edition meldet hier beim Aufruf von wxDialog:
warning C4996: 'wxDialog::wxDialog': wurde als veraltet deklariert
wie geht es richtig?
EDIT:
DIALOG
undFRAME
sind Ableitungen vonwxDialog
undwxFrame
-
Steht nix davon in der Doku:
http://docs.wxwidgets.org/stable/wx_wxdialog.html#wxdialogctor
-
wxDialog(wxWindow* parent, wxWindowID id, const wxString& title, ...
also
DIALOG::DIALOG(FRAME* frame) : wxDialog(frame, wxID_ANY, wxT("Auswählen")) { wxButton* ok = new wxButton(this, wxID_OK, wxT("OK"), wxPoint(30, 30)); }
-
oh danke