Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CRC32 returns negative on big files
Message
De
01/08/2011 03:36:11
 
 
À
01/08/2011 03:02:36
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01519635
Message ID:
01519773
Vues:
16
>>>(1) The short way is to cast the return result to UInteger, and change the return type of GetCrc32() to UInteger
>>
>>This line cannot be changed to UInteger:
>>
>>
>>        Dim lnCRC32Result As Integer = &HFFFFFFFF
>>
>>
>>It would give an error: "Constant expression not representable in type 'UInteger"
>
>Yes, it seems vb interpretes those as signed
>
>http://msdn.microsoft.com/en-us/library/s9cz43ek.aspx
>
>Append the type to the constant. U and I
>
>    Dim lnCRC32Result As UInteger = &HFFFFFFFFUI
>
There you go! Thx, didn't know that syntax existed :-{
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform