MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / OnLogDebugviewAgent

Method OnLogDebugviewAgent

DebugView++/MainFrame.cpp:1218–1235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1216}
1217
1218void CMainFrame::OnLogDebugviewAgent(UINT /*uNotifyCode*/, int /*nID*/, CWindow /*wndCtl*/)
1219{
1220 if (!m_pDbgviewReader)
1221 {
1222 std::string dbgview = stringbuilder() << GetExecutePath() << "\\dbgview.exe";
1223 if (FileExists(dbgview.c_str()))
1224 {
1225 std::string cmd = stringbuilder() << "start \"\" " << dbgview << " /a";
1226 system(cmd.c_str());
1227 }
1228 m_pDbgviewReader = m_logSources.AddDbgviewReader("127.0.0.1");
1229 }
1230 else
1231 {
1232 m_logSources.Remove(m_pDbgviewReader);
1233 m_pDbgviewReader = nullptr;
1234 }
1235}
1236
1237void CMainFrame::OnViewFilter(UINT /*uNotifyCode*/, int /*nID*/, CWindow /*wndCtl*/)
1238{

Callers

nothing calls this directly

Calls 5

FileExistsFunction · 0.85
AddDbgviewReaderMethod · 0.80
GetExecutePathFunction · 0.70
c_strMethod · 0.45
RemoveMethod · 0.45

Tested by

no test coverage detected