// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "helpchm.h"
#endif
#include "wx/filefn.h"
#include "wx/msw/helpchm.h"
-#include "wx/dynlib.h"
+#include "wx/dynload.h"
#ifndef WX_PRECOMP
#include "wx/intl.h"
#ifndef UNICODE
typedef HWND ( WINAPI * HTMLHELP )( HWND, LPCSTR, UINT, DWORD );
- #define HTMLHELP_NAME "HtmlHelpA"
+ #define HTMLHELP_NAME wxT("HtmlHelpA")
#else // ANSI
typedef HWND ( WINAPI * HTMLHELP )( HWND, LPCWSTR, UINT, DWORD );
- #define HTMLHELP_NAME "HtmlHelpW"
+ #define HTMLHELP_NAME wxT("HtmlHelpW")
#endif
// dll symbol handle
{
if ( gs_htmlHelp )
{
- wxPluginManager::UnloadLibrary( _T("HHCTRL.OCX") );
-
- gs_htmlHelp = 0;
+ if (wxPluginManager::UnloadLibrary( _T("HHCTRL.OCX") ))
+ gs_htmlHelp = 0;
}
}
return DisplaySection(block);
}
-bool wxCHMHelpController::KeywordSearch(const wxString& k)
+bool wxCHMHelpController::KeywordSearch(const wxString& k,
+ wxHelpSearchMode WXUNUSED(mode))
{
if (m_helpFile.IsEmpty()) return FALSE;