#1 2025-05-11 17:39:53

adamxpeter
Member
Registered: 2025-05-11
Posts: 2

ThomasTutorials / 03-HttpServer-MethodServices does not compile D12CE

Hello!

TestRestServer.dpr does not compile:

[dcc32 Error] TestRestServer.dpr(149): E2010 Incompatible types: 'UTF8String' and 'Pointer'
[dcc32 Error] TestRestServer.dpr(149): E2008 Incompatible types

  and (DynArrayLoadJson(customers, Pointer(json), TypeInfo(TCustomerItemArray)) <> Nil) then

according to the tooltip help, the second param should be RawUtf8 and the return type is Boolean not a reference.

also

[dcc32 Error] TestRestServer.dpr(161): E2035 Not enough actual parameters

authUser.PasswordHashHexa := TAuthUser.ComputeHashedPassword(customers[i].LoginPassword);

according to the tooltip help AuthUser.ComputeHashedPassword is quite changed.

Are there newer examples working with the current release cloned from Github?
Or are there missing steps from the frontpage "3. Discover and enjoy:" section?

Offline

Board footer

Powered by FluxBB