Return-Path: <tiff-bounces@remotesensing.org>
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx014.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j326RWih013180
        for <joris.at.lebbeke@skynet.be>; Sat, 2 Apr 2005 08:27:32 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from adsl-065-083-169-202.sip.mco.bellsouth.net (localhost [127.0.0.1])
	by xserve.flids.com (Postfix) with ESMTP
	id AD28F19537A8; Sat,  2 Apr 2005 00:02:16 -0500 (EST)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from web60203.mail.yahoo.com (web60203.mail.yahoo.com
	[216.109.118.98])
	by xserve.flids.com (Postfix) with SMTP id 14B2E195376A
	for <tiff@remotesensing.org>; Sat,  2 Apr 2005 00:02:14 -0500 (EST)
Received: (qmail 9681 invoked by uid 60001); 2 Apr 2005 05:02:13 -0000
Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;
	b=V8o6c1k6xYcWVPGE9/cPmKDQn0hbpvS2FTc1eTv3N2H/L/xJD5Fqixd//LbBzIMjfT6tLkT+Ht0ksJyqcvby8lMnrpjekhdYPOiLmLqN8hzQVuIO8wnRGmBRCI3ltRyu46i9xUJ5sexp9IRruwesRVc3ssi6ScygihPjSgSZRgg=
	; 
Message-ID: <20050402050213.9679.qmail@web60203.mail.yahoo.com>
Received: from [192.146.101.26] by web60203.mail.yahoo.com via HTTP;
	Fri, 01 Apr 2005 21:02:13 PST
Date: Fri, 1 Apr 2005 21:02:13 -0800 (PST)
From: katrina maramba <ka3na_423@yahoo.com>
To: tiff@remotesensing.org
MIME-Version: 1.0
Subject: [Tiff] What is the 'real' variable type of thandle_t?
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: TIFF and libtiff discussion  <tiff.remotesensing.org>
List-Unsubscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://xserve.flids.com/pipermail/tiff>
List-Post: <mailto:tiff@remotesensing.org>
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Subscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============098535637237735507=="
Sender: tiff-bounces@remotesensing.org
Errors-To: tiff-bounces@remotesensing.org
X-UIDL: 000000000023ceae.00000065
X-MSP-STORE: Sat, 02 Apr 2005 08:27:38 +0200
Status:   

--===============098535637237735507==
Content-Type: multipart/alternative; boundary="0-1848467041-1112418133=:6601"

--0-1848467041-1112418133=:6601
Content-Type: text/plain; charset=us-ascii

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__ */
#else
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! 
 

		
---------------------------------
Yahoo! Messenger
 Show us what our next emoticon should look like. Join the fun.
--0-1848467041-1112418133=:6601
Content-Type: text/html; charset=us-ascii

<DIV>Im a little puzzled on&nbsp;the variable type&nbsp;of thandle_t... </DIV>
<DIV>&nbsp;</DIV>
<DIV>I&nbsp;found this in tiffio.h:</DIV>
<DIV>&nbsp;</DIV>
<DIV>#if defined(USE_WIN32_FILEIO)<BR># include &lt;windows.h&gt;<BR># ifdef __WIN32__<BR>DECLARE_HANDLE(thandle_t);&nbsp;/* Win32 file handle */<BR>extern&nbsp;TIFF* TIFFOpenW(const wchar_t*, const char*);<BR># else<BR>typedef&nbsp;HFILE thandle_t;&nbsp;/* client data handle */<BR># endif /* __WIN32__ */<BR>#else<BR>typedef&nbsp;void* thandle_t;&nbsp;/* client data handle */<BR>#endif /* USE_WIN32_FILEIO */</DIV>
<DIV>&nbsp;</DIV>
<DIV>------------------------</DIV>
<DIV>This is my code:</DIV>
<DIV>&nbsp;</DIV>
<DIV>void* pBufRet;</DIV>
<DIV>char Array[8];</DIV>
<DIV>char&nbsp;temp[8];</DIV>
<DIV><BR>pBufRet = malloc(sizeof(char)*8);</DIV>
<DIV>temp = (char)pInputData[0];<BR>Array[0] = (temp[0]) &gt;&gt;24;<BR>printf("buf0 %x", Array[0]);<BR></DIV>
<DIV>This is the error message I get when building:</DIV>
<DIV>error C2440: 'type cast' : cannot convert from 'struct thandle_t__ ' to 'unsigned char '</DIV>
<DIV>&nbsp;</DIV>
<DIV>What should I do to eliminate this problem?&nbsp; Pls help.&nbsp; Thanks! </DIV>
<DIV>&nbsp;</DIV><p>
		<hr size=1>Yahoo! Messenger<br> 
Show us what our next emoticon should look like. <a href="http://us.rd.yahoo.com/evt=31855/*http://advision.webevents.yahoo.com/emoticontest">Join the fun.</a>
--0-1848467041-1112418133=:6601--

--===============098535637237735507==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff

--===============098535637237735507==--
