]> git.saurik.com Git - wxWidgets.git/blame - utils/hhp2cached/hhp2cached.cpp
Fix wrong use of EVT_COMMAND in the example in wxThread documentation.
[wxWidgets.git] / utils / hhp2cached / hhp2cached.cpp
CommitLineData
d572bb75
VS
1/*
2 Converts hhp (HTML Help Workshop) files into cached
3 version for faster reading
4
5 Usage: hhp2cached file.hhp [file2.hhp ...]
6
7*/
8
6158481f
JS
9// For compilers that support precompilation, includes "wx/wx.h".
10#include "wx/wxprec.h"
11
12#ifdef __BORLANDC__
13#pragma hdrstop
14#endif
15
16#ifndef WX_PRECOMP
17#include "wx/wx.h"
18#endif
d572bb75 19
012f2cb2 20#include "wx/html/helpdata.h"
d572bb75
VS
21
22
23class MyApp : public wxApp
24{
25public:
26 virtual bool OnInit();
27};
28
29IMPLEMENT_APP(MyApp);
30
31bool MyApp::OnInit()
32{
33 for (int i = 1; i < argc; i++)
34 {
35 wxHtmlHelpData data;
9a83f860 36 wxPrintf(wxT("Processing %s...\n"), argv[i]);
d572bb75
VS
37 data.SetTempDir(wxPathOnly(argv[i]));
38 data.AddBook(argv[i]);
39 }
40
4fe30bce 41 return false;
d572bb75 42}