OT: recompile xharbour c-file

OT: recompile xharbour c-file

Postby Marc Vanzegbroeck » Fri Mar 27, 2020 12:46 pm

Hi,

I have an old application, using 'xHarbour Compiler build 0.99.71 (SimpLex)'

In that version, there was a problem with the function directoryrecurse.

In the newer version it was fixed. How can I compile the newer c-file (direct.c), and link to my program, using my old library?
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: OT: recompile xharbour c-file

Postby Marc Vanzegbroeck » Sat Mar 28, 2020 9:46 am

The problem is that I get this error if I compile the source
Code: Select all  Expand view  RUN
Error E2303 direct.c 108: Type name expected


Are there some specials flags I have to use?
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: OT: recompile xharbour c-file

Postby Antonio Linares » Sat Mar 28, 2020 6:00 pm

Marc,

Please post the source code for direct.c 108
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42125
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: OT: recompile xharbour c-file

Postby Marc Vanzegbroeck » Sat Mar 28, 2020 9:27 pm

Antonio,

This is line 108 in new latest release (the one with the error)
Code: Select all  Expand view  RUN
static void hb_fsGrabDirectory( PHB_ITEM pDir, const char * szDirSpec, HB_FATTR uiMask, PHB_FNAME fDirSpec, BOOL bFullPath, BOOL bDirOnly )


And this one with the old source than can be compiled
Code: Select all  Expand view  RUN
static void hb_fsGrabDirectory( PHB_ITEM pDir, const char * szDirSpec, USHORT uiMask, PHB_FNAME fDirSpec, BOOL bFullPath, BOOL bDirOnly )


I think the problem is that I can't mix those 2 releases, because the new one is using the variable 'HB_FATTR' that is defined in the new 'Hbdefs.h', and not in the old one.
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: OT: recompile xharbour c-file

Postby Antonio Linares » Sun Mar 29, 2020 6:45 am

Marc,

Lets compare the source code for function directoryrecurse in both versions and then we fix the old one.

Please post the source code for function directoryrecurse in both versions here
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42125
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: OT: recompile xharbour c-file

Postby Marc Vanzegbroeck » Sun Mar 29, 2020 9:34 am

Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: OT: recompile xharbour c-file

Postby Antonio Linares » Sun Mar 29, 2020 11:03 am

Marc,

You can not use this new C file with your xHarbour version, sorry.

What is the bug that you have using DirectoryRecurse() ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42125
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: OT: recompile xharbour c-file

Postby Marc Vanzegbroeck » Sun Mar 29, 2020 11:09 am

Antonio,

The bug is that I always get an empty array.
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: OT: recompile xharbour c-file

Postby Antonio Linares » Sun Mar 29, 2020 2:25 pm

Marc,

Please build FWH/samples/elixir.prg to review if it may help you
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42125
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: OT: recompile xharbour c-file

Postby Marc Vanzegbroeck » Sun Mar 29, 2020 2:46 pm

Antonio,

Thank you, with the function into this example-file, I get all file files :D
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 62 guests