- sprintf(buf, "%s.hhp", fname);
- f = fopen(buf, "wt");
- fprintf(f,
- "[OPTIONS]\n"
- "Compatibility=1.1\n"
- "Full-text search=Yes\n"
- "Contents file=%s.hhc\n"
- "Compiled file=%s.chm\n"
- "Default Window=%sHelp\n"
- "Default topic=%s\n"
- "Index file=%s.hhk\n"
- "Title=",
- FileNameFromPath(fname),
- FileNameFromPath(fname),
- FileNameFromPath(fname),
- FileNameFromPath(TitlepageName),
- FileNameFromPath(fname)
+ wxSnprintf(buf, sizeof(buf), _T("%s.hhp"), fname);
+ f = wxFopen(buf, _T("wt"));
+ wxFprintf(f,
+ _T("[OPTIONS]\n")
+ _T("Compatibility=1.1\n")
+ _T("Full-text search=Yes\n")
+ _T("Contents file=%s.hhc\n")
+ _T("Compiled file=%s.chm\n")
+ _T("Default Window=%sHelp\n")
+ _T("Default topic=%s\n")
+ _T("Index file=%s.hhk\n")
+ _T("Title="),
+ wxFileNameFromPath(fname),
+ wxFileNameFromPath(fname),
+ wxFileNameFromPath(fname),
+ wxFileNameFromPath(TitlepageName),
+ wxFileNameFromPath(fname)