On Wed, May 18, 2011 at 1:28 PM, Ludo Brands <ludo.bra...@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)
Yeah! I did the 2 points above, like you... but I can't compile yet. Other errors occurred. > 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@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal