1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Donation with Paypal!!!

    Go to your paypal account and send directly donation to [email protected]

    1 month - 10 $ - Standart VIP

    6 months - 20 $- Standart VIP

    1 year - 30 $- Standart VIP

    2 years - 50 $- Standart VIP

    Gold member for life - 150 $- Standart VIP

    High Vip (Standart VIP include) group please send PM or email to [email protected] for info

    After Donation please send email to [email protected]

  3. Donation Ways 2020


    Paysend
  4. Telegram
Dismiss Notice

Donation with Paypal!!!

Go to your paypal account and send directly donation to [email protected]

1 month - 10 $ - Standart VIP

6 months - 20 $- Standart VIP

1 year - 30 $- Standart VIP

2 years - 50 $- Standart VIP

Gold member for life - 150 $- Standart VIP

High Vip (Standart VIP include) group please send PM or email to [email protected] for info

After Donation please send email to [email protected]

Dismiss Notice
For open hidden message no need write thanks, thank etc. Enough is click to like button on right side of thread.

SDAC 6.11.23 - for Delphi XE8

Discussion in 'Delphi Programming' started by AdminDF, Apr 1, 2015.

  1. AdminDF
    Online

    AdminDFAdminDF is a Verified Member Delphifan Staff Member DF Staff

    to change : 
    - file : OLEDBAccess.pas
    - class : TOLEDBStream
    - interface & implementation : 


    Code:
    TOLEDBStream = class(TInterfacedObject, ISequentialStream)
    protected
    FSize: UINT;
    FBlob: TBlob;
    FStream: TStream;
    FStorageType: TStorageType;
    FOutputEncoding: TOLEDBOutputEncoding;
    FPosInBlob: cardinal;
    FStreamList: TList;
    procedure InitStream(StreamList: TList);
    public
    {$IFDEF CLR}
    [PreserveSig]
    {$ENDIF}
    {$IFNDEF FPC}
    {$ifdef ver290}
    function Read(pv: Pointer; cb: FixedUInt; pcbRead: PFixedUInt): HResult; stdcall;
    {$else}
    function Read(pv: IntPtr; cb: Longint; pcbRead: PLongint): HResult;{$IFNDEF CLR} stdcall;{$ENDIF}
    {$endif}
    {$ELSE}
    function Read(pv: Pointer; cb: DWord; pcbRead: PDWord): HRESULT; stdcall;
    {$ENDIF}
    
    {$IFDEF CLR}
    [PreserveSig]
    {$ENDIF}
    {$IFNDEF FPC}
    {$ifdef ver290}
    function Write(pv: Pointer; cb: FixedUInt; pcbWritten: PFixedUInt): HResult; stdcall;
    {$else}
    function Write(pv: IntPtr; cb: Longint; pcbWritten: PLongint): HResult;{$IFNDEF CLR} stdcall;{$ENDIF}
    {$endif}
    {$ELSE}
    function Write(pv: Pointer; cb: DWord; pcbWritten: PDWord): HRESULT; stdcall;
    {$ENDIF}
    public
    constructor Create(Blob: TBlob; StreamList: TList); overload;
    constructor Create(Stream: TStream; StreamList: TList); overload;
    destructor Destroy; override;
    
    property Size: UINT read FSize; // Return size of stream in bytes
    property OutputEncoding: TOLEDBOutputEncoding read FOutputEncoding write FOutputEncoding;
    end;
    
    

    and it should compile fine with RAD XE8
     
  2. HubertH
    Offline

    HubertH DF Member

    RE:

    thanks
     
  3. uyumam
    Offline

    uyumam DF Junior

    RE:

    thanks
     
  4. biosoft
    Online

    biosoft Guest

    RE:

    thanks
     
  5. yuyu Kin
    Offline

    yuyu Kin DF Member

    RE:

    cool stuff
     
  6. ramirezjl7
    Online

    ramirezjl7 Guest

     
  7. eugeniocel
    Online

    eugeniocel DF Senior

    have you  the full package of SDAC for xe8? Thanks
     
  8. itthikorn
    Offline

    itthikorn DF Member

    RE:

    Thanks
     
  9. mohamed_attia
    Offline

    mohamed_attia DF Member

  10. ahmed202002
    Offline

    ahmed202002 DF Member

    thank you
     
  11. jeancllpb
    Offline

    jeancllpb DF Member

    RE:

    obrigado
     
  12. nyoba13
    Online

    nyoba13 Guest

  13. leeonsoft
    Offline

    leeonsoft DF Junior

    RE:

    :heart:
     
  14. pjotter44
    Online

    pjotter44 Guest

    RE:

    thank you very much
     
  15. badalan
    Online

    badalan Guest

     
  16. terry570710
    Offline

    terry570710 DF Junior

    very thanks
     
  17. joffi
    Online

    joffi Guest

    Thank you
     
  18. antonio.portilla
    Offline

    antonio.portilla DF Junior

    Muy buen aporte si funciona, gracias!!!!!!!!!!11
     
  19. adem.akin
    Offline

    adem.akin DF Member

    RE:

    Great!
     
  20. ceed56
    Offline

    ceed56 DF Member

    thank you
     

Share This Page