//----------------------------------------------------------------------------- void CIfcbDlg::OnEnChangeEdit2() { if (!nSyringesSpinner) return; nSyringes = nSyringesSpinner.GetPos(); WriteCfgFile(); }
void CAgentCfg::SpawnProcess() { WriteCfgFile(_cfgFile, _xmlFile, _destFolder); std::string sCmdLine; sCmdLine+=::ExeDirectory() + "agent.exe "; sCmdLine+= " debug "; sCmdLine+= _cfgFile ; CreateChildProcess(sCmdLine.c_str()); }
void CAgentCfg::OnSaveCfg() { CFileDialog dlg(FALSE, _T("*"), (::ExeDirectory() + "Agent.cfg").c_str(), OFN_HIDEREADONLY, strFilter); if( dlg.DoModal() != IDOK ) return ; WriteCfgFile(ExtractFilename(dlg.m_szFileName), "", ExtractDirectory(dlg.m_szFileName) ); }
void NEUROBITOBJ::save_devctx(void) { char szFileName[256]; char *extension; strcpy(szFileName,GLOBAL.configfile); if (extension = strstr(szFileName, ".con")) strcpy(extension,".nb"); else strcat(szFileName,".nb"); if (DevCtx>=0) { write_logfile("saving Neurobit device context to %s",szFileName); if (!WriteCfgFile(DevCtx,szFileName)) report_error("Could not save Neurobit Config File"); } else write_logfile("ERROR: No Neurobit Device Context to save "); }
void CAgentCfg::Run() { char *argv[4] = { "agent.exe", "run", "" }; //std::string file = _cfgFolder +_cfgFile; std::string file = _cfgFile; argv[2]= new char[file.size() + 1]; // leak strcpy(argv[2], file.c_str()); WriteCfgFile(_cfgFile, _xmlFile, _destFolder); SetCurrentDirectory(_destFolder.c_str()); if(_config==NULL) _config = new AgentConfiguration(); _config->main(3, (const char **) argv); }
//----------------------------------------------------------------------------- void CIfcbDlg::OnBnClickedCheck11() { blobAnalysis = (BlobAnalysis.GetCheck() == BST_CHECKED); WriteCfgFile(); }
//----------------------------------------------------------------------------- void CIfcbDlg::OnBnClickedCheck10() { autoShutdown = (AutoshutdownCheckBox.GetCheck() == BST_CHECKED); WriteCfgFile(); }
//----------------------------------------------------------------------------- void CIfcbDlg::OnBnClickedCheck7() { // debug appDebug = (DebugCheckBox.GetCheck() == BST_CHECKED); WriteCfgFile(); }
//----------------------------------------------------------------------------- void CIfcbDlg::OnBnClickedCheck6() { // output files outputFiles = (OutputFiles.GetCheck() == BST_CHECKED); WriteCfgFile(); }