|
|
{ | { |
// Open file and let wxFFile destructor close the file | // Open file and let wxFFile destructor close the file |
// Closing it explicitly may crash on Win32 ... | // Closing it explicitly may crash on Win32 ... |
wxFFile file(filename.GetFullPath(), wxT("rbS")); |
wxFFile file( (const wxChar*) filename.GetFullPath(), (const char*) wxT("rbS")); |
if (! file.IsOpened()) | if (! file.IsOpened()) |
{ | { |
wxLogError (_("Unable to open %s"),unicode2char(filename.GetFullPath())); | wxLogError (_("Unable to open %s"),unicode2char(filename.GetFullPath())); |