| | |
| | | |
| | | |
| | | // 初始化SECS运行设置管理库 |
| | | //try { |
| | | // if (!SECSRuntimeManager::getInstance().initRuntimeSetting()) { |
| | | // AfxMessageBox("初始化SECS运行设置失败!"); |
| | | // return FALSE; |
| | | // } |
| | | //} |
| | | //catch (const std::exception& ex) { |
| | | // CString errorMsg; |
| | | // errorMsg.Format(_T("初始化SECS运行设置失败:%s"), CString(ex.what())); |
| | | // AfxMessageBox(errorMsg, MB_ICONERROR); |
| | | // return FALSE; |
| | | //} |
| | | try { |
| | | if (!SECSRuntimeManager::getInstance().initRuntimeSetting()) { |
| | | AfxMessageBox("初始化SECS运行设置失败!"); |
| | | return FALSE; |
| | | } |
| | | } |
| | | catch (const std::exception& ex) { |
| | | CString errorMsg; |
| | | errorMsg.Format(_T("初始化SECS运行设置失败:%s"), CString(ex.what())); |
| | | AfxMessageBox(errorMsg, MB_ICONERROR); |
| | | return FALSE; |
| | | } |
| | | |
| | | |
| | | CServoDlg dlg; |