#if wxUSE_MEDIACTRL
#include "wx/dcclient.h"
+#include "wx/thread.h"
//---------------------------------------------------------------------------
// Externals (somewhere in src/msw/app.cpp)
#define wxDL_METHOD_LOAD( lib, name, success ) \
pfn_ ## name = (name ## Type) lib.GetSymbol( wxT(#name), &success ); \
- if (!success) { wxLog::EnableLogging(true); return false; }
+ if (!success) { wxLog::EnableLogging(bWasLoggingEnabled); return false; }
//Class that utilizes Robert Roeblings Dynamic Library Macros
{
m_ok = false;
- wxLog::EnableLogging(false); //Turn off the wxDynamicLibrary logging
+ bool bWasLoggingEnabled = wxLog::EnableLogging(false); //Turn off the wxDynamicLibrary logging
if(!m_dll.Load(wxT("qtmlClient.dll")))
{
- wxLog::EnableLogging(true);
+ wxLog::EnableLogging(bWasLoggingEnabled);
return false;
}
wxDL_METHOD_LOAD( m_dll, GetMovieVolume, bOk );
wxDL_METHOD_LOAD( m_dll, SetMovieVolume, bOk );
- wxLog::EnableLogging(true);
+ wxLog::EnableLogging(bWasLoggingEnabled);
m_ok = true;
return true;
wxT("(numeric %i)\n")
wxT("occured at line %i in ")
wxT("mediactrl.cpp"),
- (int)hrdsv, szError, __LINE__);
+ szError, (int)hrdsv, __LINE__);
}
else
{