Page 1 of 1

re-compiling Hernan's Twbrowse with FWH 908

PostPosted: Fri Sep 04, 2009 5:26 pm
by Rick Lipkin
To All

Having difficulty re-compiling Hernan's TwBrowse class using the FWH 908 with the same batch file I have always used

Code: Select all  Expand view

@ECHO OFF
CLS

c:\xharbour\bin\harbour SOURCE\WBROWSE.PRG /n /i\fwh908\include;c:\xharbour\include /oOBJ\WBROWSE.C
c:\xharbour\bin\harbour SOURCE\TMULTISE.PRG /n /i\fwh908\include;c:\xharbour\include /oOBJ\TMULTISE.C

c:\borland\bcc55\bin\bcc32 -M -c -D__HARBOUR__ -Ic:\xharbour\include  -oOBJ\WBROWSE.OBJ  OBJ\WBROWSE.C
@del OBJ\WBROWSE.c
c:\borland\bcc55\bin\bcc32 -M -c -D__HARBOUR__ -Ic:\xharbour\include  -oOBJ\TMULTISE.OBJ  OBJ\TMULTISE.C
@del OBJ\TMULTISE.c

c:\borland\bcc55\bin\bcc32 -M -c -D__HARBOUR__ -Ic:\xharbour\include;c:\fwh908\include -oOBJ\WBRWLINE.OBJ  SOURCE\WBRWLINE.C

@del LIB\TWBRW32.LIB

c:\borland\bcc55\bin\tlib c:\twbNOADS\lib\TWBRW32.LIB + OBJ\WBROWSE.OBJ
c:\borland\bcc55\bin\tlib c:\twbNOADS\lib\TWBRW32.LIB + OBJ\WBRWLINE.OBJ
c:\borland\bcc55\bin\tlib c:\twbNOADS\lib\TWBRW32.LIB + OBJ\TMULTISE.OBJ

 


Here are the errors :

Code: Select all  Expand view

xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Copyright 1999-2009, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'SOURCE\WBROWSE.PRG'...

Lines 4113, Functions/Procedures 72
Generating C source output to 'OBJ\WBROWSE.C'...
Done.
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Copyright 1999-2009, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'SOURCE\TMULTISE.PRG'...

Lines 198, Functions/Procedures 6
Generating C source output to 'OBJ\TMULTISE.C'...
Done.
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
OBJ\WBROWSE.C:
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
OBJ\TMULTISE.C:
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
SOURCE\WBRWLINE.C:
Warning W8065 SOURCE\WBRWLINE.C 677: Call to function '_param' with no prototype in function HB_FUN_WBRWSELBOX
Warning W8069 SOURCE\WBRWLINE.C 677: Nonportable pointer conversion in function HB_FUN_WBRWSELBOX
Warning W8065 SOURCE\WBRWLINE.C 760: Call to function '_param' with no prototype in function HB_FUN_WBRWLINE
Warning W8069 SOURCE\WBRWLINE.C 760: Nonportable pointer conversion in function HB_FUN_WBRWLINE
Warning W8065 SOURCE\WBRWLINE.C 772: Call to function '_param' with no prototype in function HB_FUN_WBRWLINE
Warning W8069 SOURCE\WBRWLINE.C 772: Nonportable pointer conversion in function HB_FUN_WBRWLINE
Warning W8065 SOURCE\WBRWLINE.C 820: Call to function '_param' with no prototype in function HB_FUN_WBRWLINE
Warning W8065 SOURCE\WBRWLINE.C 820: Call to function '_param' with no prototype in function HB_FUN_WBRWLINE
Warning W8065 SOURCE\WBRWLINE.C 822: Call to function '_param' with no prototype in function HB_FUN_WBRWLINE
Warning W8065 SOURCE\WBRWLINE.C 825: Call to function '_param' with no prototype in function HB_FUN_WBRWLINE
Warning W8065 SOURCE\WBRWLINE.C 826: Call to function '_param' with no prototype in function HB_FUN_WBRWLINE
Warning W8065 SOURCE\WBRWLINE.C 831: Call to function '_param' with no prototype in function HB_FUN_WBRWLINE
Error E2342 SOURCE\WBRWLINE.C 832: Type mismatch in parameter 'pAtext' (wanted '_HB_ITEM *', got 'int') in function HB_FUN_WBRWLINE
Error E2342 SOURCE\WBRWLINE.C 832: Type mismatch in parameter 'pAsizes' (wanted '_HB_ITEM *', got 'int') in function HB_FUN_WBRWLINE
Error E2342 SOURCE\WBRWLINE.C 832: Type mismatch in parameter 'pAJustify' (wanted '_HB_ITEM *', got 'int') in function HB_FUN_WBRWLINE
Error E2342 SOURCE\WBRWLINE.C 832: Type mismatch in parameter 'pTextColor' (wanted '_HB_ITEM *', got 'int') in function HB_FUN_WBRWLINE
Error E2342 SOURCE\WBRWLINE.C 832: Type mismatch in parameter 'pBkColor' (wanted '_HB_ITEM *', got 'int') in function HB_FUN_WBRWLINE
Error E2342 SOURCE\WBRWLINE.C 832: Type mismatch in parameter 'pFont' (wanted '_HB_ITEM *', got 'int') in function HB_FUN_WBRWLINE
Warning W8065 SOURCE\WBRWLINE.C 843: Call to function '_reta' with no prototype in function HB_FUN_WBRWLINE
Warning W8065 SOURCE\WBRWLINE.C 875: Call to function '_reta' with no prototype in function HB_FUN_AWBRWROWDIM
Warning W8065 SOURCE\WBRWLINE.C 977: Call to function '_reta' with no prototype in function HB_FUN_WBRWRECT
Warning W8065 SOURCE\WBRWLINE.C 1013: Call to function '_param' with no prototype in function HB_FUN_WBRWPANE
Warning W8069 SOURCE\WBRWLINE.C 1013: Nonportable pointer conversion in function HB_FUN_WBRWPANE
Warning W8065 SOURCE\WBRWLINE.C 1014: Call to function '_param' with no prototype in function HB_FUN_WBRWPANE
Warning W8069 SOURCE\WBRWLINE.C 1014: Nonportable pointer conversion in function HB_FUN_WBRWPANE
Warning W8065 SOURCE\WBRWLINE.C 1015: Call to function '_param' with no prototype in function HB_FUN_WBRWPANE
Warning W8069 SOURCE\WBRWLINE.C 1015: Nonportable pointer conversion in function HB_FUN_WBRWPANE
Warning W8065 SOURCE\WBRWLINE.C 1033: Call to function '_param' with no prototype in function HB_FUN_WBRWPANE
Warning W8069 SOURCE\WBRWLINE.C 1033: Nonportable pointer conversion in function HB_FUN_WBRWPANE
Warning W8065 SOURCE\WBRWLINE.C 1042: Call to function '_param' with no prototype in function HB_FUN_WBRWPANE
Warning W8069 SOURCE\WBRWLINE.C 1042: Nonportable pointer conversion in function HB_FUN_WBRWPANE
Warning W8065 SOURCE\WBRWLINE.C 1051: Call to function '_param' with no prototype in function HB_FUN_WBRWPANE
Warning W8069 SOURCE\WBRWLINE.C 1051: Nonportable pointer conversion in function HB_FUN_WBRWPANE
Warning W8065 SOURCE\WBRWLINE.C 1181: Call to function '_param' with no prototype in function HB_FUN_WBRWPANE
Warning W8065 SOURCE\WBRWLINE.C 1182: Call to function '_param' with no prototype in function HB_FUN_WBRWPANE
Warning W8065 SOURCE\WBRWLINE.C 1186: Call to function '_param' with no prototype in function HB_FUN_WBRWPANE
Error E2342 SOURCE\WBRWLINE.C 1187: Type mismatch in parameter 'pTextColor' (wanted '_HB_ITEM *', got 'int') in function HB_FUN_WBRWPANE
Error E2342 SOURCE\WBRWLINE.C 1187: Type mismatch in parameter 'pBkColor' (wanted '_HB_ITEM *', got 'int') in function HB_FUN_WBRWPANE
Error E2342 SOURCE\WBRWLINE.C 1187: Type mismatch in parameter 'pFont' (wanted '_HB_ITEM *', got 'int') in function HB_FUN_WBRWPANE
Warning W8065 SOURCE\WBRWLINE.C 1662: Call to function '_reta' with no prototype in function HB_FUN_FWDISPBEGIN
*** 9 errors in Compile ***
TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation
TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation
Warning: 'OBJ\WBRWLINE.OBJ' file not found
TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation
 


I am at a loss here

Rick Lipkin

Re: re-compiling Hernan's Twbrowse with FWH 908

PostPosted: Fri Sep 04, 2009 5:51 pm
by Rick Lipkin
To All

Apparently there have been many modifications to the include files .. I re-installed fwh904 and re-created Hernan's library ..

This is going to be a problem for some if there is a xHarbour pCode change anytime soon and those that are using the newer FWH libraries.

Rick Lipkin

Re: re-compiling Hernan's Twbrowse with FWH 908

PostPosted: Fri Sep 04, 2009 7:24 pm
by TimStone
That is the main reason I'm converting all my tsbrowse code to xbrowse. 3rd party products are too hard to maintain with the changes, and the newer code reflects work by many people which makes it more powerful. Also, bug fixes come more rapidly, and the user base is large enough to catch little problems quickly.

Re: re-compiling Hernan's Twbrowse with FWH 908

PostPosted: Thu Sep 10, 2009 3:11 am
by Colin Haig
Hi Rick

Did you have any luck with this issue - I use Hernans browse all through my projects.

Cheers

Colin

Re: re-compiling Hernan's Twbrowse with FWH 908

PostPosted: Thu Sep 10, 2009 6:25 am
by Antonio Linares
Rick,

Please rename all _par... _stor... and _ret... functions calls with "hb" in front:
hb_par..., hb_stor... and hb_ret...

Re: re-compiling Hernan's Twbrowse with FWH 908

PostPosted: Thu Sep 10, 2009 6:29 am
by StefanHaupt
Rick,

the error only occurs compiling wbrwline.c, so you can use the obj-file created using the include files of an older xharbour release. All prg-files can be compiled with the last xharbour.

All c-files are not affected by pcode changes, because they are only compiled with bcc.

Re: re-compiling Hernan's Twbrowse with FWH 908

PostPosted: Thu Sep 10, 2009 2:04 pm
by Rick Lipkin
Thanks for the suggestions .. I just switched jobs to another large state gov agency .. I missed taking a few of my 3rd party libs with me and had to re-create them.

The quick work around was to use the FWH904 libs and I was able to re-create my library .. but I will take Antonio up on his advice .. I am moving away from twbrowse in favor of xbrowse ..

Thanks
Rick Lipkin

Re: re-compiling Hernan's Twbrowse with FWH 908

PostPosted: Thu Sep 10, 2009 2:50 pm
by Ariel
Rick,

compile the wbrwline.c this way :

\bcc55\bin\bcc32 -M -c -D__HARBOUR__ -I\xhrb\include;\fwh\include;\bcc55\include -owbrwline.OBJ wbrwline.C > make.log

and include wbrwline.obj generate, and execute this .bat :

em @ECHO OFF
CLS

\xhrb\bin\harbour SOURCE\wbrowse.PRG /n /i\fwh\include;\xhrb\include /oOBJ\wbrowse.C
\xhrb\bin\harbour SOURCE\tmultise.PRG /n /i\fwh\include;\xhrb\include /oOBJ\tmultise.C

rem INICIO Modulos C Generados por Harbour !!!

\bcc55\bin\bcc32 -M -c -D__HARBOUR__ -I\xhrb\include;\bcc55\include -oOBJ\wbrowse.OBJ OBJ\wbrowse.C
\bcc55\bin\bcc32 -M -c -D__HARBOUR__ -I\xhrb\include;\bcc55\include -oOBJ\tmultise.OBJ OBJ\tmultise.C

rem @del OBJ\*.C

@del LIB\twbrw.LIB

echo + obj\wbrowse.OBJ & >tmplib.bc
echo + obj\wbrwline.OBJ & >>tmplib.bc
echo + obj\tmultise.OBJ >>tmplib.bc

\bcc55\bin\tlib LIB\twbrw.LIB @tmplib.bc

@del tmplib.bc


sorry my english.
Regards.