roentgen b75cab
roentgen b75cab
Date: 04 Dec 95 10:34:23 EST
roentgen b75cab
From: Philippe <100423.3705@compuserve.com>
roentgen b75cab
To: TIFF/sam Leffler <sam@cthulhu.engr.sgi.com></sam@cthulhu.engr.sgi.com>
roentgen b75cab
Subject: TIFF library and Windows 95
roentgen b75cab
Message-Id: <951204153422_100423.3705_BHG101-1@CompuServe.COM>
roentgen b75cab
roentgen b75cab
Sam, 
roentgen b75cab
roentgen b75cab
First, let me thanks all of you how have worked 
roentgen b75cab
on that great TIFF library !
roentgen b75cab
roentgen b75cab
Here is some information that may help someone.
roentgen b75cab
roentgen b75cab
I build the library under Windows 95 as a 32-bit library.
roentgen b75cab
The contribution of Scott Wagner (tif_win32.c) worked fine, but 
roentgen b75cab
the makefile "makefile.msc" was unsable because it was
roentgen b75cab
written for DOS or Windows 3.1 and all the files names 
roentgen b75cab
are limited to 8 characters.
roentgen b75cab
roentgen b75cab
Here is the makefile I used : makefile.w95
roentgen b75cab
roentgen b75cab
Also, I had to disable fax3 support because I wasn't able
roentgen b75cab
to build (as it is) the tool "mkg3states" to generate the include
roentgen b75cab
file "g3states.h". 
roentgen b75cab
This source file must be modify to be build under Windows 95.
roentgen b75cab
roentgen b75cab
To build the library under Windows 95 with Visual C++ 2.0, 
roentgen b75cab
I had to :
roentgen b75cab
roentgen b75cab
- undefine CCITT_SUPPORT in "tiffconf.h"
roentgen b75cab
roentgen b75cab
- create the file version.h with this line :
roentgen b75cab
      #define VERSION "3.4beta024"
roentgen b75cab
roentgen b75cab
- build the makefile "makefile.w95"
roentgen b75cab
roentgen b75cab
I also join the source file "tif2dib.c" that I created, 
roentgen b75cab
it contain the function LoadTIFFinDIB that load 
roentgen b75cab
a TIFF file and build a memory DIB with it and return the 
roentgen b75cab
HANDLE (HDIB) of the memory bloc containing this DIB.
roentgen b75cab
Since DIB is the "natural" bitmap format for Windows 3.1, 95 and NT,
roentgen b75cab
this function sould be usefull for some Windows 95 (or NT) developer.
roentgen b75cab
roentgen b75cab
roentgen b75cab
Sorry for my approximate english ...
roentgen b75cab
roentgen b75cab
Regards,
roentgen b75cab
roentgen b75cab
Philippe Tenenhaus   100423.3705@compuserve.com
roentgen b75cab
Paris