private:
wxHtmlHelpController *help;
- wxConfig* config;
};
wxInitAllImageHandlers();
wxFileSystem::AddHandler(new wxZipFSHandler);
- config = new wxConfig("wxHTMLhelp");
+ SetVendorName("wxWindows");
+ SetAppName("wxHTMLHelp");
+ wxConfig::Get(); // create an instance
+
help = new wxHtmlHelpController;
- help -> UseConfig(config);
if (argc < 2) {
- wxLogError("Usage : helpview <helpfile> [<more helpfiles>]");
- wxLogError(" helpfile may be .hhp, .zip or .htb");
+ wxLogError(wxT("Usage : helpview <helpfile> [<more helpfiles>]"));
+ wxLogError(wxT(" helpfile may be .hhp, .zip or .htb"));
return FALSE;
}
int MyApp::OnExit()
{
delete help;
- delete config;
+ delete wxConfig::Set(NULL);
return 0;
}