42 #include "wx/msgdlg.h" 60 SetAppName(
"rcdiscover");
61 SetVendorName(
"Roboception");
66 if ((result = ::WSAStartup(MAKEWORD(2, 2), &wsaData)) != 0)
68 std::ostringstream oss;
69 oss <<
"WSAStartup failed: " << result;
70 wxMessageBox(oss.str(),
"Error", wxOK | wxICON_ERROR);
87 return wxApp::OnExit();
96 catch (
const std::exception &ex)
98 std::string error_msg =
"Caught exception of type ";
99 error_msg +=
typeid(ex).name();
101 error_msg += ex.what();
102 wxMessageBox(error_msg,
"Error", wxOK | wxICON_ERROR);
105 return wxApp::OnExceptionInMainLoop();
virtual bool OnExceptionInMainLoop() override
virtual int OnExit() override
Main window in which the table of discovered devices is displayed.
wxIMPLEMENT_APP(RcDiscoverApp)
virtual ~RcDiscoverApp()=default
void registerResources()
Registers virtual resource files using wxMemoryFSHandler.
virtual bool OnInit() override