[fpc-pascal] Re: PDFlib TET - convert using h2pas

Ludo Brands ludo.brands at free.fr
Wed May 18 19:43:08 CEST 2011

Here you go,


-----Message d'origine-----
De : fpc-pascal-bounces at lists.freepascal.org
[mailto:fpc-pascal-bounces at lists.freepascal.org] De la part de Marcos
Envoyé : mercredi 18 mai 2011 19:37
À : FPC-Pascal users discussions
Objet : Re: RE : RE : [fpc-pascal] Re: PDFlib TET - convert using h2pas

On Wed, May 18, 2011 at 1:28 PM, Ludo Brands <ludo.brands at free.fr> wrote:
> >From your question COM or header, I assumed you are only interested 
> >in
> windows. I also assume that you don't want to export functions 
> defiend. So, I did the following:
> - removed PDFLIB_API and PDFLIB_CALL (point 1 in my previous message)
> - replaced the L".." defines by one to the char version (point 2)

I did the 2 points above, like you... but I can't compile yet. Other errors

> The result from h2pas is attached. What needs to be done:
> - add stdcall; behind all functions that had PDFLIB_API. Both in 
> interface and implementation part.
> - if you are linking dynamically replace in the functions that had 
> PDFLIB_CALL in the implementation part
>  begin
>    { You must implement this function }
>  end;
> with
>  external 'name of the lib';
> - as always, review the translation

Can you send the tetlib.h that you modified? With it I can run h2pas again
with others parameters, like external lib, stdcall, type conversion, etc.

Thank you.

Marcos Douglas
fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tetlib.h
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20110518/ea606165/attachment.h>

More information about the fpc-pascal mailing list