FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour De *.C Para *.Obj en BCC74 no funciona más.
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: De *.C Para *.Obj en BCC74 no funciona más.
Posted: Sat Oct 14, 2023 01:26 PM
Antonio Linares wrote:Dear Enrico,

Could you please upload it to https://github.com/FiveTechSoft/harbour_and_xharbour_builds ?

many thanks
Done: https://github.com/FiveTechSoft/harbour_and_xharbour_builds/blob/master/harbour_bcc760_64bits_20230707.zip

Please test it. I am not sure it works properly.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: De *.C Para *.Obj en BCC74 no funciona más.
Posted: Sat Oct 14, 2023 03:41 PM
Dear Enrico,

great!

going to test it... :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Posts: 114
Joined: Fri Jul 21, 2006 07:15 PM
Re: De *.C Para *.Obj en BCC74 no funciona más.
Posted: Fri Nov 17, 2023 02:55 PM
Dear
Any ideas on how I could resolve this error?
Code (fw): Select all Collapse
static uint16_t crc_ccitt_generic( const unsigned char *input_str, size_t num_bytes, uint16_t start_value ) {

    uint16_t crc;
    uint16_t tmp;
    uint16_t short_c;
    const unsigned char *ptr;
    size_t a;

    if ( ! crc_tabccitt_init ) init_crcccitt_tab();

    crc = start_value;
    ptr = input_str;

    if ( ptr != NULL ) for (a=0; a<num_bytes; a++) {

        short_c = 0x00ff & (unsigned short) *ptr;     // Conversion may lose significant digits in function crc_ccitt_generic
        tmp     = (crc >> 8) ^ short_c;               // Conversion may lose significant digits in function crc_ccitt_generic
        crc     = (crc << 8) ^ crc_tabccitt[tmp];     // Conversion may lose significant digits in function crc_ccitt_generic

        ptr++;
    }

    return crc;
Thanks in advance
FWH / xHarbour / BCC / MySql

Visual Studio / Harbour / DotNet Maui / C#
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: De *.C Para *.Obj en BCC74 no funciona más.
Posted: Fri Nov 17, 2023 03:16 PM
Eroni wrote:Dear
Any ideas on how I could resolve this error?
Code (fw): Select all Collapse
static uint16_t crc_ccitt_generic( const unsigned char *input_str, size_t num_bytes, uint16_t start_value ) {

    uint16_t crc;
    uint16_t tmp;
    uint16_t short_c;
    const unsigned char *ptr;
    size_t a;

    if ( ! crc_tabccitt_init ) init_crcccitt_tab();

    crc = start_value;
    ptr = input_str;

    if ( ptr != NULL ) for (a=0; a<num_bytes; a++) {

        short_c = 0x00ff & (unsigned short) *ptr;     // Conversion may lose significant digits in function crc_ccitt_generic
        tmp     = (crc >> 8) ^ short_c;               // Conversion may lose significant digits in function crc_ccitt_generic
        crc     = (crc << 8) ^ crc_tabccitt[tmp];     // Conversion may lose significant digits in function crc_ccitt_generic

        ptr++;
    }

    return crc;
Thanks in advance
Try this and let me know if it works for you:
Code (fw): Select all Collapse
short_c = ( uint16_t ) ( 0x00ff & (unsigned short) *ptr );
tmp     = ( uint16_t ) ( (crc >> 8) ^ short_c );
crc     = ( uint16_t ) ( (crc << 8) ^ crc_tabccitt[tmp] );
Posts: 318
Joined: Fri Jan 14, 2022 08:37 AM
Re: De *.C Para *.Obj en BCC74 no funciona más.
Posted: Fri Nov 17, 2023 05:45 PM
Enrico Maria Giordano wrote:32-bit version: https://github.com/FiveTechSoft/harbour_and_xharbour_builds/blob/master/harbour_bcc760_32bits_20230707.zip

Mr. Enrico,

Thank you very much for your efforts.

Three items.
- Is stable release ?
- a few old 7/7/23 perhaps ?
- What it provides, it is faster, more compatible ?
Regards
Posts: 114
Joined: Fri Jul 21, 2006 07:15 PM
Re: De *.C Para *.Obj en BCC74 no funciona más.
Posted: Fri Nov 17, 2023 05:49 PM
Enrico Maria Giordano wrote:
Dear
Any ideas on how I could resolve this error?
Code (fw): Select all Collapse
static uint16_t crc_ccitt_generic( const unsigned char *input_str, size_t num_bytes, uint16_t start_value ) {

    uint16_t crc;
    uint16_t tmp;
    uint16_t short_c;
    const unsigned char *ptr;
    size_t a;

    if ( ! crc_tabccitt_init ) init_crcccitt_tab();

    crc = start_value;
    ptr = input_str;

    if ( ptr != NULL ) for (a=0; a<num_bytes; a++) {

        short_c = 0x00ff & (unsigned short) *ptr;     // Conversion may lose significant digits in function crc_ccitt_generic
        tmp     = (crc >> 8) ^ short_c;               // Conversion may lose significant digits in function crc_ccitt_generic
        crc     = (crc << 8) ^ crc_tabccitt[tmp];     // Conversion may lose significant digits in function crc_ccitt_generic

        ptr++;
    }

    return crc;
Thanks in advance
Try this and let me know if it works for you:
Code (fw): Select all Collapse
short_c = ( uint16_t ) ( 0x00ff & (unsigned short) *ptr );
tmp     = ( uint16_t ) ( (crc >> 8) ^ short_c );
crc     = ( uint16_t ) ( (crc << 8) ^ crc_tabccitt[tmp] );

Mr Enrico, works!
Thank you so much!
FWH / xHarbour / BCC / MySql

Visual Studio / Harbour / DotNet Maui / C#
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: De *.C Para *.Obj en BCC74 no funciona más.
Posted: Fri Nov 17, 2023 06:34 PM
paquitohm wrote:
32-bit version: https://github.com/FiveTechSoft/harbour_and_xharbour_builds/blob/master/harbour_bcc760_32bits_20230707.zip

Mr. Enrico,

Thank you very much for your efforts.

Three items.
- Is stable release ?
- a few old 7/7/23 perhaps ?
- What it provides, it is faster, more compatible ?
Regards
Yes, it is stable. Date is 28 october 2023. I don't think it is faster than 7.60 but it is worth to use it as it is an updated version.
Posts: 318
Joined: Fri Jan 14, 2022 08:37 AM
Re: De *.C Para *.Obj en BCC74 no funciona más.
Posted: Fri Nov 17, 2023 09:06 PM

In other words.

Actually I am using bcc73.

Are there big differences than bcc76 ?

Thanks in advance

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: De *.C Para *.Obj en BCC74 no funciona más.
Posted: Fri Nov 17, 2023 09:24 PM
No, you can use it without problems. I recommend the new BCC 7.70:

http://xharbour.org/index.asp?page=download/windows/required_win
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: De *.C Para *.Obj en BCC74 no funciona más.
Posted: Sat Nov 18, 2023 12:07 PM
Enrico Maria Giordano wrote:No, you can use it without problems. I recommend the new BCC 7.70:

http://xharbour.org/index.asp?page=download/windows/required_win
Gran noticias Maestro Enrico. ¡Lo probaré ahora!

Great news master Enrico. I'll test it now!

Gracias, thanks.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: De *.C Para *.Obj en BCC74 no funciona más.
Posted: Sat Nov 18, 2023 01:16 PM
Funciona perfecto!

C:\BCC77
C:\XHBBCC77

https://imgur.com/4UcCRHC



Gracias, thanks.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: De *.C Para *.Obj en BCC74 no funciona más.
Posted: Sat Nov 18, 2023 01:20 PM

Great! Can you test curl, if you are familiar with it, please?

Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: De *.C Para *.Obj en BCC74 no funciona más.
Posted: Sat Nov 18, 2023 01:37 PM
Enrico Maria Giordano wrote:Great! Can you test curl, if you are familiar with it, please?
Never used. Do you have a model and the names of the .LIBs that I should use?

Nunca usé. ¿Tiene un modelo y los nombres de los .LIB que debo usar?

Gracias, thanks.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: De *.C Para *.Obj en BCC74 no funciona más.
Posted: Sat Nov 18, 2023 01:41 PM

hbcurl.lib, but I don't know how to use it, sorry.