Página 1 de 1

pagescript and xailer/harbour .....

Publicado: Mar Abr 23, 2013 7:14 pm
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)Â

pagescript and xailer/harbour .....

Publicado: Mar Abr 23, 2013 7:54 pm
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

pagescript and xailer/harbour .....

Publicado: Mar Abr 23, 2013 8:09 pm
por ignacio
Hello,
Glad you already solve your problem. Congrats!
Can I have your permission to include it on our download area?
Regards,

pagescript and xailer/harbour .....

Publicado: Mié Abr 24, 2013 11:12 am
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