- config = new wxConfig("wxHTMLhelp");
-
- help.UseConfig(config);
- help.AddBook("helpfiles/testing.hhp");
+ help.UseConfig(wxConfig::Get());
+ bool ret;
+ help.SetTempDir(wxT("."));
+ ret = help.AddBook(wxFileName(wxT("helpfiles/testing.hhp"), wxPATH_UNIX));
+ if (! ret)
+ wxMessageBox(wxT("Failed adding book helpfiles/testing.hhp"));
+ ret = help.AddBook(wxFileName(wxT("helpfiles/another.hhp"), wxPATH_UNIX));
+ if (! ret)
+ wxMessageBox(_("Failed adding book helpfiles/another.hhp"));