[gl2ps] gl2psBeginPage FILE type (*stream)

Jarry Claessen jarry at jarry.nl
Thu Aug 5 12:14:17 CEST 2010


Hello,

 

With help from people from some forums I was able to compile the dll.
This is all working now and I have made sure that the functions are
being exported. I am now creating a pascal wrapper to make the dll work
with all pascal based programming languages. This is almost completed,
except for one problem.

 

The "FILE *stream" is a specific C type, so I have been told. This makes
it impossible to write a wrapper since there is no identical type in
Pascal. Using a TStream from pascal and sending the pointer for that
TStream will probably not work.

 

So my question is. Is it possible to adjust the code so only the
filename should be provided (like with the LaTeX version I assume,
reading) and the functions creates the stream itself:

"filename

(for LATEX output only) Specifies a name for the stream to which data is
printed."

 

Or is there a way that the dll could provide some sort of option to
create a stream based on a filename and that stream could be passed as a
parameter.

 

For instance just having a simple function:

gl2psCreateFileStream(const char *filename);

 

Kind regards,

 

Jerry

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gl2ps/attachments/20100805/2f4a2fde/attachment.html>