Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux

2009-01-12 Thread Barry Jackson
OK it's not Harbour that has caused this as I have checked in another installation and new compiles run OK in the same Linux build. Very strange! Barry Jackson wrote: > > Yesterday I checked out the latest svn and updated to rev10031 and latest > xhgtk I am now finding that my GUI executables w

Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux

2009-01-11 Thread Barry Jackson
I can not find harbour.so and xhgtk.so libraries on my machine so I have installed the RPMs. Yesterday I checked out the latest svn and updated to rev10031 and latest xhgtk I am now finding that my GUI executables will only launch from a terminal and not directly. Has something changed in Harbo

Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux

2009-01-09 Thread Barry Jackson
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 fo

Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux

2009-01-09 Thread Bruno Luciani
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 librar

Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux

2009-01-09 Thread Bruno Luciani
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

Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux

2009-01-09 Thread Barry Jackson
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

Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux

2009-01-09 Thread Przemyslaw Czerpak
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 -lh

Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux

2009-01-09 Thread Barry Jackson
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 imp

Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux

2009-01-09 Thread Przemyslaw Czerpak
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'... > Lin

Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux

2009-01-08 Thread Barry Jackson
Maurilio No I can't do it - sorry. I feel a bit guilty asking questions here, but the last answer anyone got in the "user" list was in 2006! :-( Cheers, Barry Sorry abt direct email - mistake! Maurilio Longo wrote: > > Barry, > > good to know, > > it can even been that my version has change

Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux

2009-01-08 Thread Maurilio Longo
Barry, good to know, it can even been that my version has changes that I did not update to the svn, sorry for this, I'll check out and, in case, update the svn. Can you fix this in svn? Best regards. Maurilio. Barry Jackson wrote: > Hi Maurilio, > I finally got it sorted! :-) > The problem on

Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux

2009-01-08 Thread Barry Jackson
Hi Maurilio, I finally got it sorted! :-) The problem on transmit was the lack of a time-out parameter for tp_send. In telepathy.prg the time-out defaults to 0, so if no time-out parameter is passed it will not send as it thinks it has already timed out. The sample testtp.prg sends no parameter

Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux

2009-01-08 Thread 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

Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux

2009-01-08 Thread Maurilio Longo
Barry, I never used a loopbak device, I did attach a modem and send to it an ATIx command which makes the modem answer back with some internal data/status. I was even able to print to a serial printer from linux (an old mandrake). That said, tp_xxx is just a prof of concept and it was not finish

Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux

2009-01-07 Thread Bruno Luciani
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 2009/1/7 Barry Jackson : > > Marilio, > I just te

Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux

2009-01-07 Thread Barry Jackson
Marilio, I just tested with the laptop and hbtpathy is now receiving - only - hence the loopback fail. Send String = g FetchChars = Handle 3 Recv string = So we are half way there! Pity it's this way round as my application only needs to send ! Barry -- View this messag

Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux

2009-01-07 Thread Barry Jackson
Randy: That's better, it compiled and linked OK - thanks. Still not working though. Marilio: I just got your reply - thanks you are right I missed a "," compared to the testtp.prg in contrib. I have run my test with and without Randy's ReleaseCPU() in the delay loop and still no output using the

Re:[Harbour] Using /contrib/hbtpathy fuctions in Linux

2009-01-07 Thread maurilio longo
Barry, I'm not sure, I don't have telepathy help at hand, but > > function main > tp_open( 1,, 9600, 8, "N", 1 ) tp_open( port, input-buffer size, output-buffer size, speed... so it lacks a comma and as such 9600 is not port speed and all the other parameters are wrong as well. But, I have t

Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux

2009-01-07 Thread Randy Portnoff
Sorry, the function is called hb_ReleaseCPU() - It is defined in IDLE.C as follows: /* Release a CPU time slice */ HB_FUNC( HB_RELEASECPU ) { hb_releaseCPU(); } At 04:26 PM 1/7/2009, you wrote: Thanks Randy, I wondered about that but did not know of a way to implement ThreadSleep(). I hav

Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux

2009-01-07 Thread Barry Jackson
Thanks Randy, I wondered about that but did not know of a way to implement ThreadSleep(). I have tried to use your suggestion but without documentation I can't find the lib for ReleaseCPU() :- undefined reference to `HB_FUN_RELEASECPU' Where can I find a full listing of Harbour functions etc. the

Re: [Harbour] Using /contrib/hbtpathy fuctions in Linux

2009-01-07 Thread Randy Portnoff
Hi Barry, I can't help you with your problem but I do have two comments regarding your ThreadSleep() function: 1. I do not think that this will sleep the thread (unless Harbour does something which I doubt it does) - You need to make a call in this loop to explicitly sleep the thread. For ex