MCPcopy Create free account
hub / github.com/WinMerge/winmerge / OutputConsole

Method OutputConsole

Src/Merge.cpp:497–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495}
496
497void CMergeApp::OutputConsole(const String& message)
498{
499 if (AttachConsole(ATTACH_PARENT_PROCESS))
500 {
501 DWORD dwWritten;
502 String line = _T("WinMerge: ") + message + _T("\n");
503 WriteConsole(GetStdHandle(STD_OUTPUT_HANDLE), line.c_str(), static_cast<DWORD>(line.length()), &dwWritten, nullptr);
504 FreeConsole();
505 }
506}
507
508CMultiDocTemplate* CMergeApp::GetOpenTemplate()
509{

Callers 1

ShowIdenticalMessageMethod · 0.80

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected