• Re: Help with LETODB and xharbour

    From Anderson Cardoso@21:1/5 to All on Tue Sep 20 10:38:45 2022
    Em quinta-feira, 2 de novembro de 2017 às 15:21:41 UTC-2, culikr@gmail.com escreveu:
    Hi
    much better is use sqlrdd or RDDADS

    Regards
    Luiz
    Em sexta-feira, 27 de outubro de 2017 17:59:26 UTC-2, jmrodr...@gmail.com escreveu:
    I work with xHarbour 1.2.3 Intl. (SimpLex) (Build 20170513) and BCC 55.
    I want to try the letodb library.
    I downloaded the latest version from http://www.kresin.ru/en/letodb.html (letodb-2.17-b3.bcc and letodb-2.17-b3.src).

    I use this test program:

    function main()

    local cServer:='//127.0.0.1:2812/' // IPadress of server

    REQUEST LETO
    RDDSETDEFAULT("LETO")

    if Leto_Connect(cServer)==-1 // is the server listening?
    ? 'No hay conexion con el servidor ' + cServer
    ? 'Error:' + str(LETO_CONNECT_ERR())
    else
    ? 'Conexión correcta con el Servidor' + cServer
    endif

    RETURN nil

    I run the letodb server without problems:


    LETODB.INI:

    Port=2812
    DataPath=C:\DEV\LETODB
    Logfile=letodb.log
    Default_Driver=CDX


    LETODB.LOG:

    10/27/17 20:55:43: Leto DB Server has been started.
    Leto DB Server v.2.17b3 ! INIT: DataPath=C:\DEV\LETODB, ShareTables=0, MaxUsers=500, MaxTables=5000, CacheRecords=10


    I compile the test program with HARBOUR it works correctly but if I compile it in my environment (xHarbour + BCC52) it gives error 7 when trying to connect:

    No hay conexion con el servidor //127.0.0.1:2812/
    Error: 7

    I do not know why. Some help?

    Thank's!!!

    In the reade.txt it says:
    2.5 xHarbour

    SERVER: the server itself must be build with Harbour, cannot be done with xHB.
    Same applies for utils like console monitor.

    CLIENT: client library (RDD) can be build with xHarbour, use the 'rddleto.lib.xbp' definition for
    xBuilder. For Windows ( but not for XCC ), it will by default use a second thread ( without HVM ),
    so the executable must be linked with a library containing '_beginthreadex()'.
    cFlag define: LETO_NO_THREAD=1 set for xHB will disable this and the need for threading function,
    [ C-compiler: note that xBuilder doesn't store used C-compiler -- change it on demand.
    XCC: can't compile 3rd party 'lz4.c', compile it with PellesC >= 4.5 manually,
    and replace it in list of files for xBuilder with resulting 'lz4.obj':
    pocc.exe -Fo"obj\lz4.obj" -Ot -I"include" -I"source\3rd\lz4\lib" -I%PATH_XHB%"\include"
    -I%PATH_POCC%"\Include" -I%PATH_POCC%"\include\Win" "source\3rd\lz4\lib\lz4.c"

    So, all we need is to compile the LIB with xHarbour.
    The server can be done with Harbour or downloaded here: https://linguagemclipper.com.br/blogs/tutoriais/tutorial-letodbf-como-servico-do-windows

    I am trying to compile this LIB with no success. Why don´t you include this RDDLETO.LIB in the package of xHarbour v1.2.3 ? All we need is the lib compiled with same version of xHarbour used.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Anderson Cardoso@21:1/5 to All on Tue Sep 20 10:40:51 2022
    Em quarta-feira, 1 de novembro de 2017 às 05:40:44 UTC-2, Jmar escreveu:
    hi Richard, thanks for your interest. I use bcc 5.5

    Best regards

    JM Rodriguez

    v1.2.3 didn´t work with BCC55 with me, I had to use BCC58.
    I can´t compile this rddleto.lib eighter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Anderson Cardoso@21:1/5 to All on Wed Jul 12 06:18:19 2023
    Em terça-feira, 20 de setembro de 2022 às 14:40:52 UTC-3, Anderson Cardoso escreveu:
    Em quarta-feira, 1 de novembro de 2017 às 05:40:44 UTC-2, Jmar escreveu:
    hi Richard, thanks for your interest. I use bcc 5.5

    Best regards

    JM Rodriguez
    v1.2.3 didn´t work with BCC55 with me, I had to use BCC58.
    I can´t compile this rddleto.lib eighter.

    Latest version of Elchs' Letodbf now compiles with xharbour but file compression is not working yet for xharbour.
    Anyway, it´s a very good news!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)