Most of my builds are with Harbour and Microsoft Visual Studio. There are two functions used TToS( ) and DateTime() in database.prg and rpreview.prg and there is no problem at all with them.
The issue is I'm trying to also build an xHarbour ( .com ) version ( Pelles ) for compatibility purposes, and these functions are not supported. Is there code available to link in for these ?
Thanks.
TTos() and DateTime() in xHB commercial
TTos() and DateTime() in xHB commercial
Tim Stone
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: TTos() and DateTime() in xHB commercial
Both the functions TTOS() and DATETIME() are provided by xHarbour, since a long time.
I built this small program with buildxhb.bat (using xhb.com) in fwh\samples folder.
I built this small program with buildxhb.bat (using xhb.com) in fwh\samples folder.
Code: Select all
#include "fivewin.ch"
function Main()
local tDate, cDateTime
SET DATE AMERICAN
SET CENTURY ON
tDate := DateTime()
cDateTime := TTOS( tDate )
? tDate,cDateTime
return nil
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: TTos() and DateTime() in xHB commercial RESOLVED
In older versions of FWH, when using Harbour, I had to use the functions as:
HB_DateTime()
HB_TToS( )
These were not compatible with my version of xHarbour.com
Now, removing HB_ allows both the Harbour and xHarbour builds.
HB_DateTime()
HB_TToS( )
These were not compatible with my version of xHarbour.com
Now, removing HB_ allows both the Harbour and xHarbour builds.
Tim Stone
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
Re: TTos() and DateTime() in xHB commercial
Code: Select all
#include "fivewin.ch"
function Main()
local tDate, cDateTime
SET DATE AMERICAN
SET CENTURY ON
#IFDEF __XHARBOUR__
tDate := DateTime()
cDateTime := TTOS( tDate )
#ELSE // Harbour
tDate := HB_DateTime()
cDateTime := HB_TTOS( tDate )
#ENDIF
? tDate, cDateTime
return nil
João Santos - São Paulo - Brasil
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: TTos() and DateTime() in xHB commercial
This is possible because we are now including xhb.lib for Harbour builds.Now, removing HB_ allows both the Harbour and xHarbour builds.
We also need not use #ifdef's as above.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India