Page 1 of 2

prsht.h changes for Borland 64 bits

PostPosted: Wed Nov 09, 2022 2:43 pm
by Antonio Linares
same as in Borland 32 bits:

look for:

UINT *pcRefParent; \

and replace it with:

UINT *pcRefParent;

Re: prsht.h changes for Borland 64 bits

PostPosted: Wed Nov 09, 2022 6:38 pm
by Enrico Maria Giordano
Can we see a sample of the problem, please?

Re: prsht.h changes for Borland 64 bits

PostPosted: Thu Nov 10, 2022 7:14 am
by Antonio Linares

Re: prsht.h changes for Borland 64 bits

PostPosted: Thu Nov 10, 2022 8:41 am
by Enrico Maria Giordano
Sorry, I can't find any samples of the problem.

Re: prsht.h changes for Borland 64 bits

PostPosted: Thu Nov 10, 2022 8:46 am
by Antonio Linares
If you ever get the error, as I got it yesterday, then you know what to do :-)

Re: prsht.h changes for Borland 64 bits

PostPosted: Thu Nov 10, 2022 8:58 am
by Enrico Maria Giordano
But then the same fix should be applied to MSC.

Re: prsht.h changes for Borland 64 bits

PostPosted: Thu Nov 10, 2022 11:33 am
by Antonio Linares
I never got it with MSVC

Re: prsht.h changes for Borland 64 bits

PostPosted: Thu Nov 10, 2022 2:01 pm
by Enrico Maria Giordano
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.

Re: prsht.h changes for Borland 64 bits

PostPosted: Thu Nov 10, 2022 6:54 pm
by Antonio Linares
Dear Enrico,

Simply try to rebuild FWH 64 for BCC64

Re: prsht.h changes for Borland 64 bits

PostPosted: Thu Nov 10, 2022 8:08 pm
by Enrico Maria Giordano
Can you tell me one single file that gives error if compiled with BCC 64 bit, please?

Re: prsht.h changes for Borland 64 bits

PostPosted: Thu Nov 10, 2022 8:29 pm
by Antonio Linares
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

Re: prsht.h changes for Borland 64 bits

PostPosted: Thu Nov 10, 2022 8:30 pm
by Antonio Linares
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 *

Re: prsht.h changes for Borland 64 bits

PostPosted: Thu Nov 10, 2022 8:32 pm
by Antonio Linares
BTW, the above xHarbour should say Harbour...

Fixing it now :-)

Re: prsht.h changes for Borland 64 bits

PostPosted: Thu Nov 10, 2022 10:01 pm
by Enrico Maria Giordano
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...

Re: prsht.h changes for Borland 64 bits

PostPosted: Fri Nov 11, 2022 7:22 am
by Antonio Linares
With the fix explained at the beginning of this thread, it works fine :-)