[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 7ed6c13 1/2: Show dll preloading on the conso
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 7ed6c13 1/2: Show dll preloading on the console |
Date: |
Fri, 20 Jan 2017 19:14:46 +0000 (UTC) |
branch: master
commit 7ed6c13ad4a02c03c1612be3c1eb5a4ce7a3c33a
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Show dll preloading on the console
Developers generally run lmi's GUI from a terminal, while msw end
users never do, so it makes sense to write informational messages
on the console. In this case, the messages facilitate testing.
---
msw_workarounds.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/msw_workarounds.cpp b/msw_workarounds.cpp
index 1f661c3..63bd78d 100644
--- a/msw_workarounds.cpp
+++ b/msw_workarounds.cpp
@@ -36,6 +36,7 @@
#include <algorithm>
#include <functional>
+#include <iostream> // std::cout, std::endl
#include <iterator> // std::istream_iterator
#include <sstream>
@@ -82,6 +83,8 @@ void MswDllPreloader::PreloadDesignatedDlls()
void MswDllPreloader::PreloadOneDll(std::string const& dll_name)
{
+ std::cout << "Preloading '" << dll_name << "'." << std::endl;
+
fenv_initialize();
if(0 == ::LoadLibraryA(dll_name.c_str()))
@@ -107,6 +110,8 @@ void MswDllPreloader::PreloadOneDll(std::string const&
dll_name)
void MswDllPreloader::UnloadOneDll(std::string const& dll_name)
{
+ std::cout << "Unloading '" << dll_name << "'." << std::endl;
+
if(0 == ::FreeLibrary(::GetModuleHandleA(dll_name.c_str())))
{
warning() << "Failed to unload '" << dll_name << "'." << LMI_FLUSH;