On Sat, Feb 5, 2011 at 7:13 AM, Michael Van Canneyt <mich...@freepascal.org> wrote: > > With an editor, open pdf.h, and replace the CAPI macro with an empty string.
I thought that, but I'm not good on C so... what do this macro? > Then, run > > h2pas libwkhtmltox-0.10.0_rc2\include\wkhtmltox\pdf.h -l wkhtmltox0.dll -o > wkhtmltox0.pas -D -p > > (do not forget the -D) > > If you're on windows, open the file and do a search and replace: > cdecl > with > {$ifdef MSWINDOWS}stdcall{$else}cdecl{$endif} > > Then it should function. OK, no errors. I can't test the code now, but I will and tell you later. Thanks! Marcos Douglas _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal