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
April 2005

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date


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

Valid HTML 4.01!

2005.04.02 05:02 "What is the 'real' variable type of thandle_t?", by Katrina Maramba

Im a little puzzled on the variable type of thandle_t... 
I found this in tiffio.h:
#if defined(USE_WIN32_FILEIO)
# include <windows.h>
# ifdef __WIN32__
DECLARE_HANDLE(thandle_t); /* Win32 file handle */
extern TIFF* TIFFOpenW(const wchar_t*, const char*);
# else
typedef HFILE thandle_t; /* client data handle */
# endif /* __WIN32__ */
typedef void* thandle_t; /* client data handle */
#endif /* USE_WIN32_FILEIO */
This is my code:
void* pBufRet;
char Array[8];
char temp[8];

pBufRet = malloc(sizeof(char)*8);
temp = (char)pInputData[0];
Array[0] = (temp[0]) >>24;
printf("buf0 %x", Array[0]);

This is the error message I get when building:
error C2440: 'type cast' : cannot convert from 'struct thandle_t__ ' to 'unsigned char '
What should I do to eliminate this problem?  Pls help.  Thanks!