AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
May 2005

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2005.05.27 21:08 "creating a vb wrapper for libtiff", by <melser.anton@gmail.com>
2005.05.27 21:10 "Re: creating a vb wrapper for libtiff", by Bob Friesenhahn
2005.05.27 21:51 "Re: creating a vb wrapper for libtiff", by <melser.anton@gmail.com>
2005.05.27 21:22 "Re: creating a vb wrapper for libtiff", by Chris Losinger
2005.05.27 21:40 "Re: creating a vb wrapper for libtiff", by Bob Friesenhahn
2005.05.27 21:54 "Re: creating a vb wrapper for libtiff", by <melser.anton@gmail.com>
2005.05.27 22:00 "Re: creating a vb wrapper for libtiff", by Bob Friesenhahn
2005.05.27 22:07 "Re: creating a vb wrapper for libtiff", by <melser.anton@gmail.com>
2005.05.27 22:18 "Re: creating a vb wrapper for libtiff", by Bob Friesenhahn
2005.05.27 23:02 "Re: creating a vb wrapper for libtiff", by Chris Losinger
2005.05.27 21:50 "Re: creating a vb wrapper for libtiff", by <melser.anton@gmail.com>
2005.05.27 22:25 "Re: creating a vb wrapper for libtiff", by <melser.anton@gmail.com>
2005.05.27 22:49 "Re: creating a vb wrapper for libtiff", by <melser.anton@gmail.com>
2005.05.27 23:08 "Re: creating a vb wrapper for libtiff", by Chris Losinger
2005.05.28 17:09 "Re: creating a vb wrapper for libtiff", by Joris Van Damme
2005.05.27 21:30 "Re: creating a vb wrapper for libtiff", by Kevin Grover
2005.05.27 21:47 "Re: creating a vb wrapper for libtiff", by <melser.anton@gmail.com>

2005.05.28 17:09 "Re: creating a vb wrapper for libtiff", by Joris Van Damme

Chris, Antoine, All,

> IMO, any effort like that is going to run into some serious
> difficulties as soon as it gets to the tag handing stuff. LibTiff's
> TIFFGetTag and TIFFSetTag calls use C's "..." variable-parameter-list
> stuff, and that's not easily wrapped.
>
> but, if someone's done it, i'd love to see how!

In the old days, I had the same problem in Delphi prior to Delphi 6. I did solve
it, but I don't remember the details. Seeing it's relevant here, I would guess
that I probably used the TIFFVSetField stuff instead. I think it was compiler
dependent, but that I succeeded in finding out what the Borland C compiler
expected as a last argument, and that I was able to mimick such a structure from
my code.

I may be misremembering completely. If it's still relevant, let me know, and
I'll try to find that old stuff.

Another but essentially the same option is to include your own little
'converting' procedure in LibTiff. Add MyTIFFSetField, that takes parameters
just the way that is convinient when called from VB, and next calls TIFFSetField
or TIFFVSetField.


Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be/
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html