2006.07.24 11:32 "RE: [Tiff] C# interop for libtiff?", by Tillaart, Rob van den
I did some C# interop in a project last year (no libtiff, sorry). In this project I added an serialization layer between the C++ library and the C# stuff. In fact I packed it all into plain strings as performance was no issue (using stringbuilder on the C# side). Maybe this same technique can be used for varargs. At least you can implement up to N varargs by mapping them straightforward.
A more elaborate example of how to call the sprintf from C# can be found
> -----Original Message-----
> From: email@example.com
> [mailto:firstname.lastname@example.org] On Behalf Of Gerben Vos
Inspired by Ivan Kopcanski's question, I have been experimenting a bit in my spare time with C# interoperation for LibTIFF; I've gotten TIFFOpen() and TIFFClose() to work already, but am still thinking about how to implement the variable-arguments TIFFSetField() in a nice way. (I've even been thinking about emitting appropriate functions during runtime, generating them from the tags table.)
Has someone else already done something in this area which you can share?
This message and attachment(s) are intended solely for the use of the addressee and may contain information that is privileged, confidential or otherwise exempt from disclosure under
If you are not the intended recipient or agent thereof responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify the sender immediately by telephone and with a "reply" message.
Thank you for your cooperation.