bool MBuffer::ConvertWideToAscii(void) // Convert the string from Wide to Ascii { MString tmpstr; if(tmpstr.Create(GetWideBuffer())==false) { return false; } SetString(tmpstr.Get()); return true; }
bool MSQLite::Exec(const char *sql,MString &result) { MSQLiteReader reader; if(Exec(reader,sql)==false) { return false; } if(reader.Read()==false || reader.GetColumnCount()<=0 ) { return false; } return result.Create(reader.GetColumn(0) ); }