]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/stdpaths.cpp
cleanup - reformatting; simplified OnPaint
[wxWidgets.git] / src / msw / stdpaths.cpp
index 6bf5c714226ced2a583c44e1d4ed58ad380b70b8..3b815eac7b257479aa8b269099546bf7ae08614a 100644 (file)
@@ -106,6 +106,8 @@ static ShellFunctions gs_shellFuncs;
 
 static void ResolveShellFunctions()
 {
+#if wxUSE_DYNLIB_CLASS
+
     // start with the newest functions, fall back to the oldest ones
 #ifdef __WXWINCE__
     wxString shellDllName(_T("coredll"));
@@ -117,8 +119,7 @@ static void ResolveShellFunctions()
     wxDynamicLibrary dllShellFunctions( shellDllName );
     if ( !dllShellFunctions.IsLoaded() )
     {
-        wxString traceMessage = wxString::Format( _T("Failed to load %s.dll"), shellDllName );
-        wxLogTrace(TRACE_MASK, traceMessage );
+        wxLogTrace(TRACE_MASK, _T("Failed to load %s.dll"), shellDllName.c_str() );
     }
 
     // don't give errors if the functions are unavailable, we're ready to deal
@@ -154,6 +155,7 @@ static void ResolveShellFunctions()
     // because we also link to it statically, so it's ok
 
     gs_shellFuncs.initialized = true;
+#endif
 }
 
 // ============================================================================