FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index Utilities / Utilidades prsht.h changes for Borland 64 bits
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
prsht.h changes for Borland 64 bits
Posted: Wed Nov 09, 2022 02:43 PM

same as in Borland 32 bits:

look for:

UINT *pcRefParent; \

and replace it with:

UINT             *pcRefParent;
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: prsht.h changes for Borland 64 bits
Posted: Wed Nov 09, 2022 06:38 PM

Can we see a sample of the problem, please?

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: prsht.h changes for Borland 64 bits
Posted: Thu Nov 10, 2022 07:14 AM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: prsht.h changes for Borland 64 bits
Posted: Thu Nov 10, 2022 08:41 AM

Sorry, I can't find any samples of the problem.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: prsht.h changes for Borland 64 bits
Posted: Thu Nov 10, 2022 08:46 AM
If you ever get the error, as I got it yesterday, then you know what to do :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: prsht.h changes for Borland 64 bits
Posted: Thu Nov 10, 2022 08:58 AM

But then the same fix should be applied to MSC.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: prsht.h changes for Borland 64 bits
Posted: Thu Nov 10, 2022 11:33 AM

I never got it with MSVC

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: prsht.h changes for Borland 64 bits
Posted: Thu Nov 10, 2022 02:01 PM

Nonetheless it has the same slash. And I never get that error with BCC too. If you can provide a sample I will make some experiments.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: prsht.h changes for Borland 64 bits
Posted: Thu Nov 10, 2022 06:54 PM

Dear Enrico,

Simply try to rebuild FWH 64 for BCC64

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: prsht.h changes for Borland 64 bits
Posted: Thu Nov 10, 2022 08:08 PM

Can you tell me one single file that gives error if compiled with BCC 64 bit, please?

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: prsht.h changes for Borland 64 bits
Posted: Thu Nov 10, 2022 08:29 PM
Dear Enrico,

I can't, sorry, yesterday I was compiling several files and one of them failed with bcc 64 bits, but I just tried again to build all of them without modifying prsht.h and all of them compiled fine. Now I don't remember which exact file gave the error, I modified several modules. I would say it was now.prg but we have modified it, so it compiles fine with all compilers (32 and 64).

If I ever face it again then I will let you know it :-)

thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: prsht.h changes for Borland 64 bits
Posted: Thu Nov 10, 2022 08:30 PM
Found it:
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ FiveWin for Harbour 22.10 bcc7 64bits Oct. 2022 xHarbour development power โ”‚โ–„
โ”‚ (c) FiveTech 1993-2022 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8/10 โ”‚โ–ˆ
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜โ–ˆ
ย  โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€
Compiling...
Harbour 3.2.0dev (r2011030937)
Copyright (c) 1999-2020, https://harbour.github.io/
Compiling 'fivedit0.prg' and generating preprocessed output to 'fivedit0.ppo'...
Lines 10121, Functions/Procedures 58
Generating C source output to 'fivedit0.c'... Done.
Embarcadero C++ 7.10 for Win64 Copyright (c) 2012-2015 Embarcadero Technologies, Inc.
fivedit0.c:
Borland Resource Compiler Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved.

Error prsht.h 917 1: '#endif' before '#if'
* Linking errors *
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: prsht.h changes for Borland 64 bits
Posted: Thu Nov 10, 2022 08:32 PM
BTW, the above xHarbour should say Harbour...

Fixing it now :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: prsht.h changes for Borland 64 bits
Posted: Thu Nov 10, 2022 10:01 PM
Antonio Linares wrote:Found it:
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ FiveWin for Harbour 22.10 bcc7 64bits Oct. 2022 xHarbour development power โ”‚โ–„
โ”‚ (c) FiveTech 1993-2022 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8/10 โ”‚โ–ˆ
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜โ–ˆ
ย  โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€
Compiling...
Harbour 3.2.0dev (r2011030937)
Copyright (c) 1999-2020, https://harbour.github.io/
Compiling 'fivedit0.prg' and generating preprocessed output to 'fivedit0.ppo'...
Lines 10121, Functions/Procedures 58
Generating C source output to 'fivedit0.c'... Done.
Embarcadero C++ 7.10 for Win64 Copyright (c) 2012-2015 Embarcadero Technologies, Inc.
fivedit0.c:
Borland Resource Compiler Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation. All rights reserved.

Error prsht.h 917 1: '#endif' before '#if'
* Linking errors *
Thank you, I'm investigating. I don't understand why even MSC has the same bugged prsht.h...
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: prsht.h changes for Borland 64 bits
Posted: Fri Nov 11, 2022 07:22 AM
With the fix explained at the beginning of this thread, it works fine :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com