Page 1 of 1

C:\fwh\samples\account Problem

Posted: Sat Jan 04, 2020 6:15 am
by Jimmy
hi,

i have change in go.bat and account.mak to C:\BCC7 and c:\harbour\lib\win\bcc
C:\fwh\samples\account>go
C:\fwh\samples\account>if not exist obj md obj
C:\fwh\samples\account>c:\bcc7\bin\make -faccount.mak
MAKE Version 5.41 Copyright (c) 1987, 2014 Embarcadero Technologies, Inc.
echo off
echo c:\bcc7\lib\c0w32.obj + > b32.bc
echo obj\ejemcont.obj obj\contabil.obj obj\mntotel.obj, + >> b32.bc
echo ejemcont.exe, + >> b32.bc
echo ejemcont.map, + >> b32.bc
echo .\..\..\lib\FiveH.lib .\..\..\lib\FiveHC.lib + >> b32.bc
echo c:\harbour\lib\win\bcc\hbrtl.lib + >> b32.bc
echo c:\harbour\lib\win\bcc\hbvm.lib + >> b32.bc
echo c:\harbour\lib\win\bcc\gtgui.lib + >> b32.bc
echo c:\harbour\lib\win\bcc\hblang.lib + >> b32.bc
echo c:\harbour\lib\win\bcc\hbmacro.lib + >> b32.bc
echo c:\harbour\lib\win\bcc\hbrdd.lib + >> b32.bc
echo c:\harbour\lib\win\bcc\rddntx.lib + >> b32.bc
echo c:\harbour\lib\win\bcc\rddcdx.lib + >> b32.bc
echo c:\harbour\lib\win\bcc\rddfpt.lib + >> b32.bc
echo c:\harbour\lib\win\bcc\hbsix.lib + >> b32.bc
echo c:\harbour\lib\win\bcc\hbdebug.lib + >> b32.bc
echo c:\harbour\lib\win\bcc\hbcommon.lib + >> b32.bc
echo c:\harbour\lib\win\bcc\hbpp.lib + >> b32.bc
echo c:\harbour\lib\win\bcc\hbwin.lib + >> b32.bc
echo c:\harbour\lib\win\bcc\hbcpage.lib + >> b32.bc
echo c:\harbour\lib\win\bcc\hbct.lib + >> b32.bc
echo c:\harbour\lib\win\bcc\hbpcre.lib + >> b32.bc
echo c:\harbour\lib\win\bcc\hbcplr.lib + >> b32.bc
echo c:\harbour\lib\win\bcc\xhb.lib + >> b32.bc
echo c:\bcc7\lib\cw32.lib + >> b32.bc
echo c:\bcc7\lib\import32.lib + >> b32.bc
echo c:\bcc7\lib\psdk\odbc32.lib + >> b32.bc
echo c:\bcc7\lib\psdk\nddeapi.lib + >> b32.bc
echo c:\bcc7\lib\psdk\iphlpapi.lib + >> b32.bc
echo c:\bcc7\lib\psdk\msimg32.lib + >> b32.bc
echo c:\bcc7\lib\psdk\psapi.lib + >> b32.bc
echo c:\bcc7\lib\psdk\rasapi32.lib, >> b32.bc
IF EXIST account.res echo account.res >> b32.bc
c:\bcc7\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc.
Error: Unresolved external 'SHGetImageList' referenced from C:\FWH\LIB\FIVEHC.LIB|ICONS
Error: Unresolved external '_HB_FUN_OCCURS' referenced from C:\FWH\LIB\FIVEH.LIB|VALTOSTR
Error: Unresolved external '_hb_strAtI' referenced from C:\FWH\LIB\FIVEH.LIB|VSTRFUN1
Error: Unresolved external '_HB_FUN_HB_GETFILESINZIP' referenced from C:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_UNZIPOPEN' referenced from C:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_UNZIPFILEFIRST' referenced from C:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_UNZIPFILEINFO' referenced from C:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_UNZIPFILEOPEN' referenced from C:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_UNZIPFILEREAD' referenced from C:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_BLEN' referenced from C:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_UNZIPFILECLOSE' referenced from C:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_UNZIPFILENEXT' referenced from C:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external '_HB_FUN_HB_UNZIPCLOSE' referenced from C:\FWH\LIB\FIVEH.LIB|OLEFUNCS
Error: Unresolved external 'SHCreateDirectoryExA' referenced from C:\FWH\LIB\FIVEHC.LIB|MKDIR
Error: Unresolved external 'SHCreateDirectoryExW' referenced from C:\FWH\LIB\FIVEHC.LIB|MKDIR
Error: Unresolved external '_HB_FUN___OLEVARIANTNEW' referenced from C:\FWH\LIB\FIVEH.LIB|ADOFUNCS
Error: Unresolved external '_hb_extIsNil' referenced from C:\FWH\LIB\FIVEHC.LIB|RICHEDIT
Error: Unresolved external '_HB_FUN_HB_TSTOUTC' referenced from C:\FWH\LIB\FIVEH.LIB|VALTOSTR
Error: Unable to perform link

** error 2 ** deleting account.exe

C:\fwh\samples\account>
so there is a lot "new" in FIVEH.LIB / FIVEHC.LIB which the Sample don't know.
is this Sample now "unusable" :?:

Re: C:\fwh\samples\account Problem

Posted: Sat Jan 04, 2020 8:44 am
by Otto
Hallo Jimmy,
ich glaube, dass ist ein sehr altes Programm.
Es ist schade, dass alle Dateien beim Update ein neues Datum bekommen.
LG
Otto



** * PROGRAMA: CONTAB.PRG FECHA INICIO: 02/11/95 ****
** * FECHA FIN: 03/11/95 ****
** * ANALISTA: Francis Morales Rivas ****
** * ****
*

Re: C:\fwh\samples\account Problem

Posted: Sat Jan 04, 2020 4:36 pm
by FranciscoA
Hi.
As Otto says, it's a very old source code.

On the other hand, try with this make:

Code: Select all

HBDIR=c:\harbour_3.2_32bits_Borland582_20150205   //change this for your harbour ver.
BCDIR=c:\bcc7
FWDIR=.\..\..


#change these paths as needed
.path.OBJ = .\obj
.path.PRG = .\
.path.CH  = $(FWDIR)\include;$(HBDIR)\include
.path.C   = .\
.path.rc  = .\

#important: Use Uppercase for filenames extensions, in the next two rules!

PRG =        \
ejemcont.PRG    \
contabil.PRG    \
mntotel.PRG

PROJECT    : account.exe

account.exe  : $(PRG:.PRG=.OBJ) account.res
   echo off
   echo $(BCDIR)\lib\c0w32.obj + > b32.bc
   echo obj\ejemcont.obj obj\contabil.obj obj\mntotel.obj, + >> b32.bc
   echo ejemcont.exe, + >> b32.bc
   echo ejemcont.map, + >> b32.bc
   
   echo $(FWDIR)\lib\FiveH.lib $(FWDIR)\lib\FiveHC.lib + >> b32.bc
    
   echo $(HBDIR)\lib\hbrtl.lib + >> b32.bc
   echo $(HBDIR)\lib\hbvm.lib + >> b32.bc
   echo $(HBDIR)\lib\gtgui.lib + >> b32.bc
   echo $(HBDIR)\lib\hblang.lib + >> b32.bc
   echo $(HBDIR)\lib\hbmacro.lib + >> b32.bc
   echo $(HBDIR)\lib\hbrdd.lib + >> b32.bc
   echo $(HBDIR)\lib\rddntx.lib + >> b32.bc
   echo $(HBDIR)\lib\rddcdx.lib + >> b32.bc
   echo $(HBDIR)\lib\rddfpt.lib + >> b32.bc
   echo $(HBDIR)\lib\hbsix.lib + >> b32.bc
   echo $(HBDIR)\lib\hbdebug.lib + >> b32.bc
   echo $(HBDIR)\lib\hbcommon.lib + >> b32.bc
   echo $(HBDIR)\lib\hbpp.lib + >> b32.bc
   echo $(HBDIR)\lib\hbwin.lib + >> b32.bc
   echo $(HBDIR)\lib\hbcpage.lib + >> b32.bc
   echo $(HBDIR)\lib\hbct.lib + >> b32.bc
   echo $(HBDIR)\lib\hbpcre.lib + >> b32.bc
   echo $(HBDIR)\lib\hbcplr.lib + >> b32.bc
   echo $(HBDIR)\lib\xhb.lib + >> b32.bc
   echo $(HBDIR)\lib\hbziparc.lib + >> b32.bc
   echo $(HBDIR)\lib\hbmzip.lib + >> b32.bc
   echo $(HBDIR)\lib\hbzlib.lib + >> b32.bc
   echo $(HBDIR)\lib\minizip.lib + >> b32.bc


   echo $(BCDIR)\lib\cw32.lib + >> b32.bc
   echo $(BCDIR)\lib\import32.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\odbc32.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\nddeapi.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\iphlpapi.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\msimg32.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\gdiplus.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\psapi.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\rasapi32.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\shell32.lib, >> b32.bc
   
   IF EXIST account.res echo account.res >> b32.bc
   $(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
   del b32.bc

.PRG.OBJ:
  $(HBDIR)\bin\harbour $< /L /N /W /Oobj\ /I$(FWDIR)\include;$(HBDIR)\include
  $(BCDIR)\bin\bcc32 -c -tWM -I$(HBDIR)\include -oobj\$& obj\$&.c

.C.OBJ:
  echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp
  echo -I$(HBDIR)\include;$(FWDIR)\include >> tmp
  $(BCDIR)\bin\bcc32 -oobj\$& @tmp $&.c
  del tmp

account.res : account.rc
  $(BCDIR)\bin\brc32.exe -r account.rc
Regards.

Re: C:\fwh\samples\account Problem

Posted: Sat Jan 04, 2020 7:59 pm
by Jimmy
hi,

thx for Answer, now it compile / link without Error :D

but i wonder how as i have a different harbour\LIB Path :?:

you working *.MAK

Code: Select all

   HBDIR=c:\harbour

   echo $(HBDIR)\lib\hbziparc.lib + >> b32.bc
   echo $(HBDIR)\lib\hbmzip.lib + >> b32.bc
   echo $(HBDIR)\lib\hbzlib.lib + >> b32.bc
   echo $(HBDIR)\lib\minizip.lib + >> b32.bc
 
i change it to

Code: Select all

   HBDIR=c:\harbour

   echo $(HBDIR)\lib\win\bcc\hbziparc.lib + >> b32.bc
   echo $(HBDIR)\lib\win\bcc\hbmzip.lib + >> b32.bc
   echo $(HBDIR)\lib\win\bcc\hbzlib.lib + >> b32.bc
   echo $(HBDIR)\lib\win\bcc\minizip.lib + >> b32.bc
 
when change to "real" Path i got these Error
Error: Unresolved external '_HB_FUN_OCCURS' referenced from C:\FWH\LIB\FIVEH.LIB|VALTOSTR
Error: Unresolved external '_hb_strAtI' referenced from C:\FWH\LIB\FIVEH.LIB|VSTRFUN1
Error: Unresolved external '_HB_FUN_HB_DEFAULTVALUE' referenced from C:\BCC7\LIB\HBZIPARC.LIB|ziparc
Error: Unresolved external '_HB_FUN_HB_DEFAULT' referenced from C:\BCC7\LIB\HBZIPARC.LIB|ziparc
Error: Unresolved external '_HB_FUN_HB_LEFTEQ' referenced from C:\BCC7\LIB\HBZIPARC.LIB|ziparc
Error: Unresolved external '_HB_FUN_HB_ISEVALITEM' referenced from C:\BCC7\LIB\HBZIPARC.LIB|ziparc
Error: Unresolved external '_HB_FUN_HB_BLEN' referenced from C:\BCC7\LIB\HBZIPARC.LIB|ziparc
Error: Unresolved external '_HB_FUN___OLEVARIANTNEW' referenced from C:\FWH\LIB\FIVEH.LIB|ADOFUNCS
Error: Unresolved external '_hb_extIsNil' referenced from C:\FWH\LIB\FIVEHC.LIB|RICHEDIT
Error: Unresolved external '_HB_FUN_HB_TSTOUTC' referenced from C:\FWH\LIB\FIVEH.LIB|VALTOSTR
Error: Unable to perform link

** error 2 ** deleting account.exe
it seem me it use \BCC7\LIB and not harbour\lib\win\bcc
but where does Error of C:\FWH\LIB\FIVEH.LIB / FIVEHC.LIB come from :?:

which LIB Path is to load first :idea: harbour or BCC Directory :?:

Re: C:\fwh\samples\account Problem

Posted: Sun Jan 05, 2020 12:08 am
by Otto
Hello Jimmy,
I am about to convert my DOS accounting to mod harbour.

Image

Can you start the exe from the samples now? It would be interesting to me. Maybe I can learn from this program.
Best regards
Otto

Re: C:\fwh\samples\account Problem

Posted: Sun Jan 05, 2020 12:24 am
by Jimmy
Otto wrote:Can you start the exe from the samples now? It would be interesting to me. Maybe I can learn from this program.
YES, with file from Francisco.

Re: C:\fwh\samples\account Problem

Posted: Sun Jan 05, 2020 3:28 pm
by Silvio.Falconi
jimmy ,
I sad to you to use xmate or Fivedit

I sent to you a gif to see how many second I compile acount app with xmate

Re: C:\fwh\samples\account Problem

Posted: Sun Jan 05, 2020 8:42 pm
by Jimmy
hi,
Silvio.Falconi wrote:I sent to you a gif to see how many second I compile acount app with xmate
thx for Advice.
but it make no Difference when Environment does not fit to run FivEdit, xMate or just in DOS-Box.

Re: C:\fwh\samples\account Problem

Posted: Mon Jan 06, 2020 12:23 am
by Silvio.Falconi
ok but I sent you the env file for harbor and for xharbour. Believe me compiling with the bath file is quite difficult for those who are beginners, that is, who is trying how Fwh works.
As you can see in the gif I sent you to compile the application. \ Sample \ account it takes me only a few minutes .... why insist on wanting to use batch files? I really don't understand it

video : https://postimg.cc/94DxzDfj



XMate

Compilator Prg

Image


Compilator C

Image


for make exe and lib
Image


for make dll
Image

Linker
Image

I use xMate 1999 with success never had problems

Re: C:\fwh\samples\account Problem

Posted: Thu Jan 09, 2020 12:08 pm
by Jimmy
hi,
Silvio.Falconi wrote:I sad to you to use xmate or Fivedit
i do use FivEdit and it does compile/link without Error ... but with "wrong" \harbour\LIB path :?
i do same with *.BAT and this give me that Error. :shock:

so my Question is not "how" it is "why" :?:

p.s. have you try hbIDE :idea:
is a xMate Clone made by Pritpal Bedi using harbour. (Source available )

Re: C:\fwh\samples\account Problem

Posted: Thu Jan 09, 2020 1:56 pm
by Silvio.Falconi
I tried fiveedit with no success

I use xmate from allways and It run ok

Hbide Is not a xmate clone and It never run ok
It have some icona of xmate but Is not a clone of xmate but Is made from another ide sources

Xmate Is made from Andy and run ok It have a editor
Xmate Is not made with harbour sourced but Is made with another language (dev c)

Re: C:\fwh\samples\account Problem

Posted: Thu Jan 09, 2020 2:11 pm
by Otto
Hello Silvio,
Where can we download xMate?
And do you have a setup for compiling this accounting program?
I would only like to see it running.
Best regards,
Otto

Re: C:\fwh\samples\account Problem

Posted: Thu Jan 09, 2020 3:35 pm
by karinha

Re: C:\fwh\samples\account Problem

Posted: Sun Jan 12, 2020 11:52 am
by Silvio.Falconi
Otto wrote:Hello Silvio,
Where can we download xMate?
And do you have a setup for compiling this accounting program?
I would only like to see it running.
Best regards,
Otto
I send to you now

Re: C:\fwh\samples\account Problem

Posted: Sun Jan 12, 2020 2:57 pm
by Otto
Silvio,
thank you.
I will try tomorrow.
Best regards,
Otto