while (((ch = poem_buffer[i]) != 10) && (ch != 0))
#endif
{
- line[j] = ch;
+ line[j] = (wxChar)ch;
j ++;
i ++;
}
TheMainWindow->GetClientSize(&xx, &yy);
dc.DrawBitmap(* backingBitmap, 0, 0);
-#if 0
+#if 0
wxMemoryDC memDC;
memDC.SelectObject(* backingBitmap);
dc.Blit(0, 0, backingBitmap->GetWidth(), backingBitmap->GetHeight(), &memDC, 0, 0);
wxSprintf(buf, _T("%s.idx"), file_name);
- index_file = wxFopen(buf, _T("r"));
+ index_file = wxFopen(wxFNCONV(buf), _T("r"));
if (index_file == NULL)
return 0;
}
wxSprintf(buf, _T("%s.dat"), file_name);
- data_file = wxFopen(buf, _T("r"));
+ data_file = wxFopen(wxFNCONV(buf), _T("r"));
if (data_file == NULL)
{
i++;
}
- poem_buffer[i] = ch;
+ poem_buffer[i] = (wxChar)ch;
i ++;
if (i == buf_size)
if (data_filename)
wxSprintf(buf, _T("%s.dat"), data_filename);
- file = wxFopen(buf, _T("r"));
+ file = wxFopen(wxFNCONV(buf), _T("r"));
if (! (data_filename && file))
{
wxSprintf(error_buf, _T("Poetry data file %s not found\n"), buf);
if (data_filename)
wxSprintf(buf, _T("%s.dat"), data_filename);
- file = wxFopen(buf, _T("r"));
+ file = wxFopen(wxFNCONV(buf), _T("r"));
if (! (data_filename && file))
{
wxSprintf(error_buf, _T("Poetry data file %s not found\n"), buf);
nitems ++;
// Do rest
-
+
do {
ch = getc(file);
if (ch == '#')
if (index_filename)
wxSprintf(buf, _T("%s.idx"), index_filename);
- file = wxFopen(buf, _T("w"));
+ file = wxFopen(wxFNCONV(buf), _T("w"));
if (! (data_filename && file))
{
wxSprintf(error_buf, _T("Poetry index file %s cannot be created\n"), buf);