#1 2016-07-15 08:34:53

ken
Member
Registered: 2016-07-15
Posts: 9

Abort type PPtrInt

This type declared in SynCommons and SynCrtSock.But they are not incompatible.

For example

Uses SynCrtSock, SynCommons ;

function XX(Arows : ISQLDBRows) : RawUTF8;
var
  Lv_Pint : PPtrInt;//error
  Lv_Pint : SynCommons.PPtrInt;//ok
begin
  result := Arows.FetchAllAsJson(True,Lv_Pint,True); 

  .....
end;

Offline

#2 2016-07-15 08:53:17

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,240
Website

Re: Abort type PPtrInt

SynCommons should appear after SynCrtSock in your "uses" clause.

The idea is that SynCrtSock is self-contained, and does not depend on SynCommons.

Offline

Board footer

Powered by FluxBB