X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5100cabffa34c38db26884577113d01f21cda446..34bbbc276dc470014c8d200cfbbf7f588076aeaf:/samples/help/demo.cpp diff --git a/samples/help/demo.cpp b/samples/help/demo.cpp index d1bc2f6f7a..3c43002659 100644 --- a/samples/help/demo.cpp +++ b/samples/help/demo.cpp @@ -71,7 +71,7 @@ // ressources // ---------------------------------------------------------------------------- // the application icon -#if defined(__WXGTK__) || defined(__WXMOTIF__) +#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__) #include "mondrian.xpm" #endif @@ -319,8 +319,9 @@ bool MyApp::OnInit() } #endif -#if wxUSE_MS_HTML_HELP - if ( !frame->GetMSHtmlHelpController().Initialize("doc") ) +#if defined(__WXMSW__) && wxUSE_MS_HTML_HELP + wxString path(wxGetCwd()); + if ( !frame->GetMSHtmlHelpController().Initialize(path + "\\doc.chm") ) { wxLogError("Cannot initialize the MS HTML help system, aborting.");