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

Method Load

DebugView++/MainFrame.cpp:955–965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

953}
954
955void CMainFrame::Load(const std::wstring& filename)
956{
957 std::ifstream file(filename);
958 if (!file)
959 Win32::ThrowLastError(filename);
960
961 WIN32_FILE_ATTRIBUTE_DATA fileInfo = { 0 };
962 GetFileAttributesEx(filename.c_str(), GetFileExInfoStandard, &fileInfo);
963 SetTitle(filename);
964 Load(file, std::experimental::filesystem::path(filename).filename().string(), fileInfo.ftCreationTime);
965}
966
967void CMainFrame::LoadAsync(const std::wstring& filename)
968{

Callers 1

MainFunction · 0.80

Calls 6

ThrowLastErrorFunction · 0.85
SetTitleFunction · 0.85
GetSystemTimeAsFileTimeFunction · 0.85
ReadLogFileMessageFunction · 0.85
MessageClass · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected