It's unfortunately one error of many, but conversion seems to be the main thread of all the problems, so I am assuming that fixing one will fix a lot of others...
This is the first function...
bool Riff_Handler::Open(const string &FileName)
{
//Init
PerFile_Error.str(string());
File_IsValid=false;
File_IsCanceled=false;
bool ReturnValue=true;
//Global info
delete Chunks; Chunks=new Riff();
Chunks->Global->File_Name=FileName;
//Opening file
if (!File::Exists(FileName) || !Chunks->Global->In.Open(FileName)) /// compilation error here
{
Errors<<FileName<<": File does not exist"<<endl;
PerFile_Error<<"File does not exist"<<endl;
return false;
}
Chunks->Global->File_Size=Chunks->Global->In.Size_Get();
Chunks->Global->File_Date=Chunks->Global->In.Created_Local_Get();
if (Chunks->Global->File_Date.empty())
Chunks->Global->File_Date=Chunks->Global->In.Modified_Local_Get();
//Base
Riff_Base::chunk Chunk;
Chunk.Content.Size=Chunks->Global->File_Size;
Options_Update();
....
bool File::Exists(const Ztring &File_Name); // is the prototype in the zenlib namespace...
....
Ztring constructors...
class Ztring : public tstring //for details about undocumented methods see
http://www.sgi.com/tech/stl/basic_string.html
{
public :
//Constructor/destructor
Ztring () : tstring(){};
Ztring (const tstring& str) : tstring(str){};
Ztring (const tstring& str, size_type pos, size_type n=npos) : tstring(str, pos, n){};
Ztring (const Char* s, size_type n) : tstring(s, n){};
Ztring (const Char* s) : tstring(s){};
Ztring (size_type n, Char c) : tstring(n, c){};
#ifdef UNICODE
Ztring (const char* S) : tstring(){From_UTF8(S);};
Ztring (const char* S, size_type n) : tstring(){From_UTF8(S, 0, n);};
#endif //UNICODE
.... hope this gives you something to go on....
I am attempting to compile this using a Microsoft C++ compiler under the QT framework (QT Creator) in Windows 7
cheers,
mark