Re: [Harbour] PCode DLL
Hi Przemek, If you want to used PCODE DLLs with static Harbour binaries then you have to compile Harbour exporting public symbols like for share harbour library. It's enough to set HB_DYNLIB macro. F.e. by: set C_USR=-DHB_DYNLIB then rebuild Harbour. It works fine :) I thought -D__EXPORT__ made this work. Should I also maintain it ? Please, could you give a small explanation of these macros? Many thanks Juan ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] Harbour and OpenWatcom.
Thanks Peter for your reply. Problem still. I send current file and raport in zip file to priv email. Yesterday I have send 2 mails to harbour@harbour-project.org, but from request have one mail. Fortunately, is still http://lists.harbour-project.org/pipermail/harbour/2009-January/thread.h tml Regards, Marek Horodyski ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux
On Wed, 07 Jan 2009, Barry Jackson wrote: Hi Barry, [...] > I have compiled and linked the test program as follows:- > > [...@jackodesktop hbr]$ hbcmp -gc -n telepath.prg > Harbour 1.1.0dev (Rev. 9956) > Copyright (c) 1999-2008, http://www.harbour-project.org/ > Compiling 'telepath.prg'... > Lines 1137, Functions/Procedures 31 > Generating C source output to 'telepath.c'... Done. > > [...@jackodesktop hbr]$ hbcmp -gc testtp.prg > Harbour 1.1.0dev (Rev. 9956) > Copyright (c) 1999-2008, http://www.harbour-project.org/ > Compiling 'testtp.prg'... > Lines 19, Functions/Procedures 3 > Generating C source output to 'testtp.c'... Done. > > [...@jackodesktop hbr]$ hbcc testtp.c telepath.c tpcommon.c tplinux.c > [...@jackodesktop hbr]$ It's not directly related to your problem but I think that you should not build final application in such compilicated way. bhbtpathy is created by GNU make system when you build Harbour so it should be enough to make: hbmk testtp.prg -lbhbtpathy best regards, Przemek ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Watcom and WIn32
On Fri, 07 Nov 2008, Horodyski Marek (PZUZ) wrote: Hi Marek, > How I try make harbour with OpenWatcom 1.7 ? > In make_gnu.bat is call make.exe, but watcom has nMake. > With change name make program too not work. You need GNU make. All builds can be created using GNU make. Only BCC and MSVC have additional optional make files for their native make systems. best regards, Przemek ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Compile tests with OpenWatcom.
On Thu, 08 Jan 2009, Horodyski Marek (PZUZ) wrote: Hi Marek, > I try work with OpenWacom 1.7 on Win32. > Positively create Harbor.exe (with a few errors in WVGWIN, thaks to > Massimo). > I have all libraries (lib files in folder C:\harbour\lib\w32\owatcom\.). If you set, HB_BIN_INSTALL, HB_INC_INSTALL, HB_LIB_INSTALL environemnt variables to final directories, f.e.: set HB_BIN_INSTALL=c:\harbour\owatcom\bin set HB_INC_INSTALL=c:\harbour\owatcom\include set HB_LIB_INSTALL=c:\harbour\owatcom\lib and then execute make_gnu.bat install Then all finale binaries and header files will be copied to given location. > When trying to compile programs from a subdirectory tests using > bld_gnu.bat or hbmk_gnu.bat, unfortunately, I have such communications : > >>> > [... Snip many lines...] > loading object files > searching libraries > Warning! W1008: cannot open /hbdebug.lib : No such file or directory > [ snip 20 libs ] > Warning! W1008: cannot open /gtgui.lib : No such file or directory > Error! E2028: hb_vmProcessSymbolsEx_ is an undefined reference > [snip 12 an undefined reference] > Error! E2028: HB_FUN_QOUT_ is an undefined reference > Warning! W1023: no starting address found, using 00401000 > creating a Windows NT character-mode executable > file atest.obj(c:\harbour\tests\w32\owatcom\atest.c): undefined symbol > hb_vmProcessSymbolsEx_ > [snip 11 undefined symbol] > file atest.obj(c:\harbour\tests\w32\owatcom\atest.c): undefined symbol > hb_xvmExitProc_ > file atest.obj(c:\harbour\tests\w32\owatcom\atest.c): undefined symbol > HB_FUN_QOUT_ > make[1]: Leaving directory `c:/harbour/tests/w32/owatcom' > <<< > And aplication is not created. You are using some old build scripts which probably creates .lnk file for OpenWatcom using sth like: echo LIB %HB_LIB_INSTALL%\hbdebug.lib >> _hb_mk.tmp and because you do not have HB_LIB_INSTALL envvar then library paths points to \ directory. Use current hbmk.bat from Harbour repository (bin\hbmk.bat) best regards, Przemek ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] PCode DLL
On Fri, 09 Jan 2009, Juan Gálvez wrote: Hi Juan, >> If you want to used PCODE DLLs with static Harbour binaries then you >> have to compile Harbour exporting public symbols like for share >> harbour library. It's enough to set HB_DYNLIB macro. F.e. by: >> set C_USR=-DHB_DYNLIB >> then rebuild Harbour. > It works fine :) > I thought -D__EXPORT__ made this work. Should I also maintain it ? > Please, could you give a small explanation of these macros? Few weeks ago __EXPORT__ macro was renamed to HB_DYNLIB which is probably also not very good name but now is the official one. When it's set public functions are marked as exported and in final binaries linker create special table which can be used by loaded DLLs to locate function addresses. best regards, Przemek ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux
Hi Przemek, Thank you so much for that! I knew there had to be an easier way, but could not find it! Easy when you know. I have now built my small Linux application using xhgtk front end and hbtpathy for the com functions - it works fine - just like my Xbase++ version in Windows - I am really impressed with Harbour! It also builds with hbmk hdvr -lhbtpathy -xhgtk//Much easier than my 3 step approach! It produces a 40kB executable which runs on this machine. Question, what other files do I need to deploy to another machine that has no Harbour installed to enable it to run there? Is there a tool to do this? Regards, Barry. Przemyslaw Czerpak-2 wrote: > > On Wed, 07 Jan 2009, Barry Jackson wrote: > > Hi Barry, > > [...] >> I have compiled and linked the test program as follows:- >> >> [...@jackodesktop hbr]$ hbcmp -gc -n telepath.prg >> Harbour 1.1.0dev (Rev. 9956) >> Copyright (c) 1999-2008, http://www.harbour-project.org/ >> Compiling 'telepath.prg'... >> Lines 1137, Functions/Procedures 31 >> Generating C source output to 'telepath.c'... Done. >> >> [...@jackodesktop hbr]$ hbcmp -gc testtp.prg >> Harbour 1.1.0dev (Rev. 9956) >> Copyright (c) 1999-2008, http://www.harbour-project.org/ >> Compiling 'testtp.prg'... >> Lines 19, Functions/Procedures 3 >> Generating C source output to 'testtp.c'... Done. >> >> [...@jackodesktop hbr]$ hbcc testtp.c telepath.c tpcommon.c tplinux.c >> [...@jackodesktop hbr]$ > > It's not directly related to your problem but I think that you should not > build final application in such compilicated way. bhbtpathy is created by > GNU make system when you build Harbour so it should be enough to make: >hbmk testtp.prg -lbhbtpathy > > best regards, > Przemek > ___ > Harbour mailing list > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour > > -- View this message in context: http://www.nabble.com/Using--contrib-hbtpathy-fuctions-in-Linux-tp21339751p21370374.html Sent from the Harbour - Dev mailing list archive at Nabble.com. ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] PCode DLL
Many thanks - Original Message - From: "Przemyslaw Czerpak" To: "Harbour Project Main Developer List." Sent: Friday, January 09, 2009 11:27 AM Subject: Re: [Harbour] PCode DLL On Fri, 09 Jan 2009, Juan Gálvez wrote: Hi Juan, If you want to used PCODE DLLs with static Harbour binaries then you have to compile Harbour exporting public symbols like for share harbour library. It's enough to set HB_DYNLIB macro. F.e. by: set C_USR=-DHB_DYNLIB then rebuild Harbour. It works fine :) I thought -D__EXPORT__ made this work. Should I also maintain it ? Please, could you give a small explanation of these macros? Few weeks ago __EXPORT__ macro was renamed to HB_DYNLIB which is probably also not very good name but now is the official one. When it's set public functions are marked as exported and in final binaries linker create special table which can be used by loaded DLLs to locate function addresses. best regards, Przemek ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux
On Fri, 09 Jan 2009, Barry Jackson wrote: Hi Barry, > I have now built my small Linux application using xhgtk front end and > hbtpathy for the com functions - > it works fine - just like my Xbase++ version in Windows - I am really > impressed with Harbour! > It also builds with > hbmk hdvr -lhbtpathy -xhgtk//Much easier than my 3 step approach! > It produces a 40kB executable which runs on this machine. > Question, what other files do I need to deploy to another machine that has > no Harbour installed to enable it to run there? Is there a tool to do this? Such executable file uses shared harbour.so and xhgtk.so libraries and you should install them on destination machine. If you are using RPM based distribution then I suggest to create RPMs for Harbour and XHGTK and then install xhgtk-*..rpm and harbour-lib-*..rpm. Both contains above shared libraries. You can also create static binaries using -static hb* script parameters. In such case the Harbour and xHarbour libraries will be linked with your application. Anyhow still other system and GTK libraries will be linked dynamically so you will need compatible libraries installed in destination system. You can also use -fullstatic parameter which eliminates this problem and create fully static binaries if you have static version of used libraries installed. Unfortunately GTK does not provide static libs so in this case it will not work. Also static binaries using some system functionality may not be well portable. If you want to reduce the problem with coping binaries between systems then the easiest way is creating shared binaries as you have now and distribute them with used shared libraries (harbour.so and xhgtk.so in this case). Your compiled .prg code or .c code using Harbour API should not have any other external references so even if harbour.so and/or xhgtk.so cannot be installed on destination system then it will be enough to download valid binary libraries for this system or rebuild them from source code without touching your application. best regards, Przemek ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] CHANGELOG: 2009-01-09 12:55 UTC+0100 Maurilio Longo
2009-01-09 12:55 UTC+0100 Maurilio Longo (maurilio.lo...@libero.it) * harbour/config/os2/global.cf * simplified and fixed an error in deleting files * harbour/source/rtl/hbffind.c ! fixed hb_fsFindNextLow() in OS/2 which was using stat to find file size, but as it seems, st_size contains garbage. Removed call to stat() and used buffer returned by DosFindFirst(). -- __ | | | |__| Maurilio Longo |_|_|_|| farmaconsult s.r.l. ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux
Hi Przemek, Thank you for taking the time to provide such a detailed and complete explanation. Cheers, Barry. Przemyslaw Czerpak-2 wrote: > > On Fri, 09 Jan 2009, Barry Jackson wrote: > > Hi Barry, > >> I have now built my small Linux application using xhgtk front end and >> hbtpathy for the com functions - >> it works fine - just like my Xbase++ version in Windows - I am really >> impressed with Harbour! >> It also builds with >> hbmk hdvr -lhbtpathy -xhgtk//Much easier than my 3 step approach! >> It produces a 40kB executable which runs on this machine. >> Question, what other files do I need to deploy to another machine that >> has >> no Harbour installed to enable it to run there? Is there a tool to do >> this? > > Such executable file uses shared harbour.so and xhgtk.so libraries > and you should install them on destination machine. If you are using > RPM based distribution then I suggest to create RPMs for Harbour and > XHGTK and then install xhgtk-*..rpm and harbour-lib-*..rpm. > Both contains above shared libraries. > You can also create static binaries using -static hb* script parameters. > In such case the Harbour and xHarbour libraries will be linked with your > application. Anyhow still other system and GTK libraries will be linked > dynamically so you will need compatible libraries installed in destination > system. You can also use -fullstatic parameter which eliminates this > problem and create fully static binaries if you have static version of > used libraries installed. Unfortunately GTK does not provide static > libs so in this case it will not work. Also static binaries using some > system functionality may not be well portable. If you want to reduce > the problem with coping binaries between systems then the easiest way > is creating shared binaries as you have now and distribute them with > used shared libraries (harbour.so and xhgtk.so in this case). > Your compiled .prg code or .c code using Harbour API should not have > any other external references so even if harbour.so and/or xhgtk.so > cannot be installed on destination system then it will be enough to > download valid binary libraries for this system or rebuild them from > source code without touching your application. > > best regards, > Przemek > ___ > Harbour mailing list > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour > > -- View this message in context: http://www.nabble.com/Using--contrib-hbtpathy-fuctions-in-Linux-tp21339751p21371348.html Sent from the Harbour - Dev mailing list archive at Nabble.com. ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] 2009-01-09 13:35 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
2009-01-09 13:35 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/vm/classes.c * updated __objHasMsgAssigned() + accept also symbols (@methodname()) not only strings as message name (2-nd parameter) just like in __objHasMsg() or __objSendMsg() + added suport for scalar classes in __objHasMsgAssigned() + generate RT error when wrong parameters are passed * updated comments with .prg functions syntax best regards Przemek ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
RE: [Harbour] Watcom and WIn32
>-Original Message- >From: Przemyslaw Czerpak [mailto:dru...@acn.waw.pl] >Sent: Friday, January 09, 2009 11:14 AM >To: Harbour Project Main Developer List. >Subject: Re: [Harbour] Watcom and WIn32 > >On Fri, 07 Nov 2008, Horodyski Marek (PZUZ) wrote: > [...] >> How I try make harbour with OpenWatcom 1.7 ? >> In make_gnu.bat is call make.exe, but watcom has nMake. >> With change name make program too not work. [...] >You need GNU make. >All builds can be created using GNU make. Only BCC and MSVC >have additional optional make files for their native make systems. Przemek, now I have already GNU MAKE system, but he does not see libraries when I compile testing programs (as tests folders). Reagards, Marek Horodyski ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: RE: [Harbour] Watcom and WIn32
On Fri, 09 Jan 2009, Horodyski Marek (PZUZ) wrote: Hi Marek, > now I have already GNU MAKE system, but he does not see libraries when I > compile testing programs (as tests folders). See the second message I sent today as answer for your request. best regards, Przemek ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] hbct issues
I've found that XTOC( 2007 ) returns garbage and that LASTDAYOM returns 0 without parameters while the doc says it should use the system date. For XTOC there is warning that says: ATTENTION: different implementations or platforms of Harbour, they * could produce different format in the string returned by XTOC() for * data type NUMBER. Is there anybody with CT installed that can confirm the differences? function main ? "LASTDAYOM", LASTDAYOM() ? "XTOC", XTOC( 2007 ) return nil best regards, Lorenzo P.S. I've fixed locally LASTDAYOM in this way: HB_FUNC( LASTDAYOM ) { BOOL bLeap = 0; int iYear, iMonth, iDay; if( ISDATE( 1 ) ) { PHB_ITEM pDate = hb_param( 1, HB_IT_DATE ); LONG lDate = hb_itemGetDL( pDate ); if( lDate ) { hb_dateDecode( lDate, &iYear, &iMonth, &iDay ); } else { hb_dateToday( &iYear, &iMonth, &iDay ); } bLeap = ct_isleap( iYear ); } else if( ISNUM( 1 ) ) { iMonth = hb_parni( 1 ); } else if( ISNIL( 1 ) ) // < added this { hb_dateToday( &iYear, &iMonth, &iDay ); } // < else { iMonth = 0; } hb_retni( ( iMonth && ( iMonth <= 12 ) ? ct_daysinmonth( iMonth, bLeap ) : 0 ) ); } ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
RE: [Harbour] Compile tests with OpenWatcom.
>You are using some old build scripts which probably creates >.lnk file for OpenWatcom using sth like: > echo LIB %HB_LIB_INSTALL%\hbdebug.lib >> _hb_mk.tmp and >because you do not have HB_LIB_INSTALL envvar then library >paths points to \ directory. >Use current hbmk.bat from Harbour repository (bin\hbmk.bat) Hm. My make not used hbmk.bat. I see now, that file C:\harbour\tests\w32\owatcom\__link__.tmp is based on file MAKEFILE in TESTS subfolder. How can I change it ? Regards, Marek Horodyski ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
[Harbour] 2009-01-09 17:59 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
2009-01-09 17:59 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/contrib/hbct/ftoc.c * harbour/contrib/hbct/misc1.c * changed XTOC(), FTOC() and CTOF() to always store/retirve numbers as double value in little endian order to reduce platform differences ; TOFIX intorduce new macro which can be used instead sizeof( double ) for platforms where double size is different then 8 and macro HB_FORCE_IEEE754_DOUBLE is set * harbour/contrib/hbct/dattime2.c * changed date functions to use default date like in CT3 best regards Przemek ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: RE: [Harbour] Compile tests with OpenWatcom.
On Fri, 09 Jan 2009, Horodyski Marek (PZUZ) wrote: > >You are using some old build scripts which probably creates > >.lnk file for OpenWatcom using sth like: > > echo LIB %HB_LIB_INSTALL%\hbdebug.lib >> _hb_mk.tmp and > >because you do not have HB_LIB_INSTALL envvar then library > >paths points to \ directory. > >Use current hbmk.bat from Harbour repository (bin\hbmk.bat) > Hm. My make not used hbmk.bat. > I see now, that file C:\harbour\tests\w32\owatcom\__link__.tmp is based > on file MAKEFILE in TESTS subfolder. > How can I change it ? Do not change it but use hbmk.bat to compile and link your .prg code. It generates link file automatically. You can look at it to create your own cutomized version if necessary. best regards, Przemek ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux
It is for windows but compiles ok using MinGW , I dont know if it works in linux , probably not . Bruno 2009/1/8 Barry Jackson : > > Thanks Bruno, > I had a quick look but it seems to be Windows based - is it for Linux as > well? > If so I will look closer. > Cheers, Barry > > Bugzilla from bruno.luci...@gmail.com wrote: >> >> Barry , try this library >> >> >> http://www.carozodequilmes.com.ar/Projects/QAC/hbcomm.lib.htm >> >> this page its part of >> >> http://www.carozodequilmes.com.ar/Projects/QAC/_Index_QAC.htm >> >> It 's in spanish but the code in zip it's comented in english >> >> Bruno >> >> >> ___ >> Harbour mailing list >> Harbour@harbour-project.org >> http://lists.harbour-project.org/mailman/listinfo/harbour >> >> > > -- > View this message in context: > http://www.nabble.com/Using--contrib-hbtpathy-fuctions-in-Linux-tp21339751p21349708.html > Sent from the Harbour - Dev mailing list archive at Nabble.com. > > ___ > Harbour mailing list > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour > ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux
the library is in source format take a try Bruno 2009/1/8 Barry Jackson : > > Thanks Bruno, > I had a quick look but it seems to be Windows based - is it for Linux as > well? > If so I will look closer. > Cheers, Barry > > Bugzilla from bruno.luci...@gmail.com wrote: >> >> Barry , try this library >> >> >> http://www.carozodequilmes.com.ar/Projects/QAC/hbcomm.lib.htm >> >> this page its part of >> >> http://www.carozodequilmes.com.ar/Projects/QAC/_Index_QAC.htm >> >> It 's in spanish but the code in zip it's comented in english >> >> Bruno >> >> >> ___ >> Harbour mailing list >> Harbour@harbour-project.org >> http://lists.harbour-project.org/mailman/listinfo/harbour >> >> > > -- > View this message in context: > http://www.nabble.com/Using--contrib-hbtpathy-fuctions-in-Linux-tp21339751p21349708.html > Sent from the Harbour - Dev mailing list archive at Nabble.com. > > ___ > Harbour mailing list > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour > ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] 2009-01-09 17:59 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
On Fri, Jan 9, 2009 at 6:00 PM, Przemyslaw Czerpak wrote: > 2009-01-09 17:59 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) > * harbour/contrib/hbct/ftoc.c > * harbour/contrib/hbct/misc1.c >* changed XTOC(), FTOC() and CTOF() to always store/retirve numbers as > double value in little endian order to reduce platform differences > ; TOFIX intorduce new macro which can be used instead sizeof( double ) >for platforms where double size is different then 8 and macro >HB_FORCE_IEEE754_DOUBLE is set > > * harbour/contrib/hbct/dattime2.c >* changed date functions to use default date like in CT3 Many thanks. best regards, Lorenzo ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] 2009-01-09 17:59 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
On Fri, Jan 9, 2009 at 6:00 PM, Przemyslaw Czerpak wrote: > 2009-01-09 17:59 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) > * harbour/contrib/hbct/ftoc.c > * harbour/contrib/hbct/misc1.c >* changed XTOC(), FTOC() and CTOF() to always store/retirve numbers as > double value in little endian order to reduce platform differences > ; TOFIX intorduce new macro which can be used instead sizeof( double ) >for platforms where double size is different then 8 and macro >HB_FORCE_IEEE754_DOUBLE is set Sorry maybe I don't understand. What should returns XTOC with numbers? In the doc I read: ... . Numeric values always return an 8-byte string: ? XTOC(0)// Length 8 ? XTOC(9.9) // Ditto ? XTOC(-9.9) // Ditto ? XTOC(99) // Ditto ? XTOC(-99) // Ditto ... length 8 of what? For ? XTOC( 2007 ) I still see "garbage" ( Ubuntu 8.10/x86 ). best regards, Lorenzo ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] 2009-01-09 17:59 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
I just tested ? XTOC( 2007 ) in Mandriva 2009 and it returns NIL Lorenzo Fiorini wrote: On Fri, Jan 9, 2009 at 6:00 PM, Przemyslaw Czerpak wrote: 2009-01-09 17:59 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/contrib/hbct/ftoc.c * harbour/contrib/hbct/misc1.c * changed XTOC(), FTOC() and CTOF() to always store/retirve numbers as double value in little endian order to reduce platform differences ; TOFIX intorduce new macro which can be used instead sizeof( double ) for platforms where double size is different then 8 and macro HB_FORCE_IEEE754_DOUBLE is set Sorry maybe I don't understand. What should returns XTOC with numbers? In the doc I read: ... . Numeric values always return an 8-byte string: ? XTOC(0)// Length 8 ? XTOC(9.9) // Ditto ? XTOC(-9.9) // Ditto ? XTOC(99) // Ditto ? XTOC(-99) // Ditto ... length 8 of what? For ? XTOC( 2007 ) I still see "garbage" ( Ubuntu 8.10/x86 ). best regards, Lorenzo ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour
Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux
Thanks Bruno, I will pass on it as it seems to rely on calls to Win32 functions. Linux also uses a port name not a number and this would not be incorporated. I have resolved the problems that I was having with hbtpathy and my application is working - just a bit of tidying up to do. Thanks again for your interest, Cheers, Barry Bugzilla from bruno.luci...@gmail.com wrote: > > the library is in source format take a try > > Bruno > > -- View this message in context: http://www.nabble.com/Using--contrib-hbtpathy-fuctions-in-Linux-tp21339751p21378299.html Sent from the Harbour - Dev mailing list archive at Nabble.com. ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour