You are not logged in.
Pages: 1
what kind of "uses" for TSQLRecordPeople and TSQLRestAuthenticationDefault?
[DCC Error] mClient.pas(25): E2003 Undeclared identifier: 'TSQLRecordPeople'
[DCC Error] mClient.pas(31): E2003 Undeclared identifier: 'TSQLRestAuthenticationDefault'
my code is below:
unit mClient;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, SynCrossPlatformREST;
type
TForm5 = class(TForm)
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form5: TForm5;
Model: TSQLModel;
Client: TSQLRestClientHTTP;
implementation
{$R *.fmx}
begin
Model := TSQLModel.Create([TSQLAuthUser,TSQLAuthGroup,TSQLRecordPeople]);
Client := TSQLRestClientHTTP.Create('localhost','888',Model);
if not Client.Connect then
raise Exception.Create('Impossible to connect to the server');
if Client.ServerTimeStamp=0 then
raise Exception.Create('Incorrect server');
if not Client.SetUser(TSQLRestAuthenticationDefault,'User','synopse') then
raise Exception.Create('Impossible to authenticate to the server');
end.
yeah, i attempted to built for android. Now it works with Win32, thanks for helping.
i will try with crossplatform.
Hi,
i extracted
mORMotNightlyBuild.zip into C:\Dev\Synopse\
sqlite3obj.7z into C:\Dev\Synopse\SQLite3\
i installed
SQLite3-64.7z but i couldnt find Win64 .exe folders, so i extracted into System32 file.
i added library paths
($(BDSLIB)\$(Platform)\release;$(BDSUSERDIR)\Imports;$(BDS)\Imports;$(BDSCOMMONDIR)\Dcp;$(BDS)\include;C:\Program Files (x86)\Raize\CS5\Lib\RS-XE6\Win32;C:\Dev\Synopse;C:\Dev\Synopse\SQLite3;C:\Dev\Synopse\SynDBDataset;)
i ran the TestSQL3.dpr, result : 144 / 17,553,349
it gives an error in TSynTable (144/875)
now i can compile SQLite3 Samples. But when i try to compile a new project, i get an error, [DCC Fatal Error] SynZip.pas(176): F1026 File not found: 'C:\Dev\Synopse\SQLite3\Samples\NewProject\LibC.dcu'
How can i create a new project with mORMot dcus?
Thanks in advice.
Pages: 1