Well it happens with me too, while i try to build zeosdbo-7.0.0-alpha with my delphi xe it says [DCC Error] ZSysUtils.pas(454): E2010 Incompatible types: 'PAnsiChar' and 'PWideChar' in ZSysUtils.pas in this code
function StartsWith(const Str, SubStr: string): Boolean;
var
LenSubStr: Integer;
begin
LenSubStr := Length(SubStr);
if SubStr = '' then
Result := True
else if LenSubStr <= Length(Str) then
//Result := Copy(Str, 1, Length(SubStr)) = SubStr;
{$IFDEF DELPHI12_UP}
Result := MemLCompUnicode(PChar(Str), PChar(SubStr), LenSubStr)
{$ELSE}
Result := MemLCompAnsi(PChar(Str), PChar(SubStr), LenSubStr)
{$ENDIF}
else
Result := False;
end;
and this code
function EndsWith(const Str, SubStr: string): Boolean;
var
LenSubStr: Integer;
LenStr: Integer;
begin
if SubStr = '' then
Result := False // act like Delphi's AnsiEndsStr()
else
begin
LenSubStr := Length(SubStr);
LenStr := Length(Str);
if LenSubStr <= LenStr then
//Result := Copy(Str, LenStr - LenSubStr + 1, LenSubStr) = SubStr
{$IFDEF DELPHI12_UP}
Result := MemLCompUnicode(PChar(Pointer(Str)) + LenStr - LenSubStr,
Pointer(SubStr), LenSubStr)
{$ELSE}
Result := MemLCompAnsi(PChar(Pointer(Str)) + LenStr - LenSubStr,
Pointer(SubStr), LenSubStr)
{$ENDIF}
else
Result := False;
end;
end;
the ZPlainMySqlConstants.pas has [DCC Error] ZPlainMySqlConstants.pas(229): E2003 Undeclared identifier: 'UInt' error
in line MYSQL_FIELD_OFFSET = UInt;
the ZGenericSqlToken.pas has [DCC Error] ZGenericSqlToken.pas(206): E2003 Undeclared identifier: 'ttTime' error
in line
// Time constant
if (CountDoublePoint = 2) and (CountSlash = 0) then
begin
try
Result.Value := DecodeString(Result.Value,'"');
Result.TokenType := ttTime;
except
end;
i think it seems the component has not done yet, well may be any one who develop the zeosdbo will fix it as soon as possible, since this component is very use full, and help a lot of programmers
sorry if my english is bad