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>]");
int MyApp::OnExit()
{
delete help;
- delete config;
+ delete wxConfig::Set(NULL);
return 0;
}