In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

A couple of xHarbour->Harbour function suggestions please ...

Xailer professional forum in English
Responder
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

A couple of xHarbour->Harbour function suggestions please ...

Mensaje por ChrisGillard »

Hi,
Am migrating code from xHarbour to Harbour using Xailer 3.02.
All going well with a few #XTranslates for all the INET.... functions to HB_INET.... plus a few other changes.
Looking for simple equivalents Xailer/Harbour to :
IsDir() or IsDirectory()
Threadsleep().... tried FT_Sleep but not available.
Yes I could write something for these but would prefer to use anything built in.
Any suggestions would be appreciated.
Chris
joselalinf
Mensajes: 291
Registrado: Jue Ene 31, 2013 1:10 pm

A couple of xHarbour->Harbour function suggestions please ...

Mensaje por joselalinf »

Chris,
> IsDir() or IsDirectory()
Check ExistDir( <cPath> ).
> Threadsleep().... tried FT_Sleep but not available.
Maybe Sleep( <nMilliseconds> ) does it, but it only works on the main
thread, IIRC.
Regards,
José Lalí­n
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

A couple of xHarbour->Harbour function suggestions please ...

Mensaje por ignacio »

ChrisGillard escribió el vie, 19 abril 2013 11:17
Threadsleep()....
I guess you must use mutexs
hb_MutexLock( pMtx )
hb_MutexUnlock( pMtx )
Regards,
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

A couple of xHarbour->Harbour function suggestions please ...

Mensaje por ChrisGillard »

Hi Ignacio,
Thanks for those suggestions ... I'm sure they will do what I want.
I will miss my xHarbour .chm docs. Sadly the only thing I have found for Harbour so far is a harbour Reference3 Guide, 3.2.0 .... its one huge html page but does appear to have a lot/most Harbour functions listed with some docs on each one.
Are there any other docs for Harbour that you know of?
Thanks again.
Chris

Guest

A couple of xHarbour->Harbour function suggestions please ...

Mensaje por Guest »

Chris is right. Include the Harbour documentation, and ensure that it contains descriptions and/or links to the Extend system. Also, links that cover the Mingw-Harbour interface, in more detail.
Even if you choose to insult customers by ignoring some of their questions, you can at least say, "Sorry, we don't really support this, but you might find further information at this site at www..., or in the Harbour documentation".
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

A couple of xHarbour->Harbour function suggestions please ...

Mensaje por ignacio »

Hello,
Xailer 3.1 will have its own Thread implementation through classes. BTW, I attach the documentation I personally have create with all the docs I have found googling. I hope you can understand it with any translating engine. In case not, please ask for advice.
Regards,


Attached files Harbour Threads.txt (6.7 KB)Â
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

A couple of xHarbour->Harbour function suggestions please ...

Mensaje por ignacio »

DGauss escribió el sáb, 20 abril 2013 14:07Chris is right. Include the Harbour documentation, and ensure that it contains descriptions and/or links to the Extend system. Also, links that cover the Mingw-Harbour interface, in more detail.
Even if you choose to insult customers by ignoring some of their questions, you can at least say, "Sorry, we don't really support this, but you might find further information at this site at www..., or in the Harbour documentation".


Sorry. I'm missing something? Who has insult anyone? Was me? I hope not.
Regards,
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

A couple of xHarbour->Harbour function suggestions please ...

Mensaje por ChrisGillard »

Hi Ignacio,
I don't know where that other comment came from either.
My only wish is that Harbour had general docs more like xHarbours excellent ones which I think cost xHarbour quite a lot of money to have written.
Regards
Chris
Guest

A couple of xHarbour->Harbour function suggestions please ...

Mensaje por Guest »

Well, I can forward a list of some of the emails which were simply ignored, but that would seem to be a waste of time, and wouldn't accomplish anything.
Anyway, glad you got some docs to work with, Chris. You could use a utility to pull web pages, in order to obtain the Harbour html docs online.
Responder