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.

pagescript and xailer/harbour .....

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

pagescript and xailer/harbour .....

Mensaje por ChrisGillard »

Hi,
We use PageScript printing library in our xHarbour apps and our Xailer/xHarbour apps. It all works very well.
Am trying to get PageScript to link with Xailer3/Harbour but the closest I can get is 4 unknown functions DllLoad(), DllCall(), DllPrepareCall() & DllExecutecall()
Has anyone got PageScript working with the new Xailer3/Harbour?
There is only one prg involved TPScript.prg which is attached.
In a full Harbour distribution there is a folder with some fixes for PageScript ... Harbour-3.0.0-srcharbour-3.0.0examplesps32.
There is a .dif patch file to apply to TPScript.prg which alters the #defines at the top and a few lines of the Create Method.
I have manually applied the patch and the patched file is called TPScript_patched.prg ..... but this still has the four functions unresolved.
Any thoughts please would be really really appreciated.


Attached files ps32.dif (709 B)Â TPSCRIPT.PRG (148.4 KB)Â TPSCRIPT_patched.PRG (148.5 KB)Â
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

pagescript and xailer/harbour .....

Mensaje por ChrisGillard »

Eureka!! I think I have the answer ...
I needed to link a library called hbxpp.lib or for MinGW libhbxpp.a. Its because the original PageScript was written for xBase++ hence the hbxpp library.
This is in the Harbour distribution under libswinmingw ... add it to the list in the project menu option and my compile and link completes OK.
Many hours of time spent but successful in the end.
Hopefully I can move forward with Xailer3 now.
Thank you.
Chris
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

pagescript and xailer/harbour .....

Mensaje por ignacio »

Hello,
Glad you already solve your problem. Congrats!
Can I have your permission to include it on our download area?
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

pagescript and xailer/harbour .....

Mensaje por ChrisGillard »

Hi Ignacio,
I haven't tested it yet but I am optimistic its all going to work.
To be fair I have only done what is already recommended in the Harbour folder but those instructions failed to mention the hbxpp library.
I have also spoken to Stephan at AbeeLabs/PageScript and he is coming up with a revised TPScript.prg that automatically handles xBase++, xHarbour and now Harbour via the compiler varialbes __HARBOUR__ and __XHARBOUR__. I believe he will put that in the shipping product from now on.
Maybe he will allow that TPScript.prg to be posted as a download and a few words of instruction to include the xpphb lib.
Will let you know in the next couple of days.
Chris
Responder