shorts and longs
- From: "Lance" <nunya@xxxxxxxxxxxx>
- Date: Tue, 26 Jul 2005 11:29:27 -0500
it was my understanding that a c type short was equal to a vb type integer, and a c type
long was equal to a vb type long.
according to the tif file specs, the compression tag (259) stores it's value (either 1,
2, 3, 4, 5, 6, or 32773) as a short type (a vb integer) but as you can see, one of the
valid values of the compression type is 32773, which is out of the range of a vb integer.
so, when i Dim m_Compression as Integer and the return value is 32773, i get an overflow
obviously. i can change it to Dim m_Compression as Long, but will that cause any trouble
i'm not aware of?
lance
.
- Follow-Ups:
- Re: shorts and longs
- From: Mike D Sutton
- Re: shorts and longs
- From: MikeD
- Re: shorts and longs
- From: Bob Butler
- Re: shorts and longs
- Prev by Date: VB 6 and SOAP Server
- Next by Date: Re: Updating Application
- Previous by thread: VB 6 and SOAP Server
- Next by thread: Re: shorts and longs
- Index(es):
Relevant Pages
|