To Antonio (or anyone else who can help):
Using BC4.5, I tried to compile TCBFUNCS.C (FW 7.01) using
BCC -c -ml -D__CLIPPER__ TCBFUNCS.C
(with and without the -D__CLIPPER__) but got the following errors:-
Borland C++ 4.52 Copyright (c) 1987, 1994 Borland International
d:\fw\source\function\tcbfuncs.c:
Error d:\fw\include\ClipApi.h 60: Multiple declaration for 'WORD'
Error d:\fw\include\ClipApi.h 61: Too many types in declaration
Error d:\fw\include\ClipApi.h 61: Need an identifier to declare
Error d:\fw\include\ClipApi.h 65: Multiple declaration for 'PWORD'
Error d:\fw\include\ClipApi.h 66: Multiple declaration for 'LPWORD'
Error d:\fw\include\ClipApi.h 67: Multiple declaration for 'PLONG'
Error d:\fw\include\ClipApi.h 69: Multiple declaration for 'PDWORD'
Error d:\fw\include\ClipApi.h 71: Enum syntax error
Error d:\fw\include\ClipApi.h 71: Unexpected }
Warning d:\fw\source\function\tcbfuncs.c 208: 'LineCount' is assigned a value that is never used in function TCDRAWCELL
Warning d:\fw\source\function\tcbfuncs.c 290: 'LineCount' is assigned a value that is never used in function GetWindowRow
Warning d:\fw\source\function\tcbfuncs.c 359: 'LineCount' is assigned a value that is never used in function ATCBRWPOSR
*** 9 errors in Compile ***
I am not a C programmer but PWORD etc are also in BC4.5's WINDOWS.H so I assume that is why BCC is giving the "multiple declaration" errors (eg)?
What do I need to do to compile TCBFUNCS.C? (I assume you managed to compile it successfully at your end).
TIA
Colin