2005.05.27 21:30 "Re: [Tiff] creating a vb wrapper for libtiff", by Kevin Grover
I have searched high and low for one of these but have neither been able to find one (lots of dead links in the archives), nor been able to work out how to do it (never really worked with apis before). If anyone has one, could they post it to the list? That way it would get archived and fewer people would post this foolish question! A link to a good tutorial (or script that will do most of the work for me), and the appropriate headers to convert would be another option...
If you compile the library with gcc on Windows (using MinGW, Cygwin, or other), you need to include the -mstd (I think) option to use the Pascal stack convention. You can then use one of the included tools (can't remember which) to generate a DLL from the .a file(s). Then, you just need to come up with the Declare statements to get VB to interface to the DLL. I have examples of this for work. I used GNU fortran to compile some code for a code worker and generate a DLL from use by some Excel VBA macros. I can send you the steps needed, but it will have to wait for Tuesday ---- It's all at work.
Editor's note: This mail was not originally archived, and has been reconstructed from quotes.