Beispiel #1
0
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;
	}
Beispiel #2
0
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) );
	}