X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/264a1086422998d1e70e3ce181562d9905084705..4997d3014cd76b41f2d4036dfd168ad886972f35:/samples/html/helpview/helpview.cpp?ds=inline diff --git a/samples/html/helpview/helpview.cpp b/samples/html/helpview/helpview.cpp index 71914be05a..d77e758829 100644 --- a/samples/html/helpview/helpview.cpp +++ b/samples/html/helpview/helpview.cpp @@ -6,7 +6,7 @@ // standalone help browser. ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma implementation "help.cpp" #pragma interface "help.cpp" #endif @@ -66,8 +66,8 @@ bool MyApp::OnInit() wxInitAllImageHandlers(); wxFileSystem::AddHandler(new wxZipFSHandler); - SetVendorName("wxWindows"); - SetAppName("wxHTMLHelp"); + SetVendorName(wxT("wxWindows")); + SetAppName(wxT("wxHTMLHelp")); wxConfig::Get(); // create an instance help = new wxHtmlHelpController; @@ -79,7 +79,7 @@ bool MyApp::OnInit() } for (int i = 1; i < argc; i++) - help -> AddBook(argv[i]); + help->AddBook(wxFileName(argv[i])); #ifdef __WXMOTIF__ delete wxLog::SetActiveTarget(new wxLogGui);