Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CRC32 returns negative on big files
Message
De
01/08/2011 11:13:11
 
 
À
01/08/2011 11:09:56
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:
01519817
Vues:
18
>Ok, fine
>
>I see the class has another name compared to you first message.
>
>If that means you won't be using the original class - fine
>
>But if you still have the other class, why not add a method crc32Unsigned() as UInteger ?
>The method would use the existing crc32 Integer method, convert the result to UInteger and return that ?

The problem with that is I would have had to change the public property to be UInteger which would not longer be compliant with the original functionality of the class. Add to that the Initialize() method would has to be changed as well.

However, when moving that at the Framework level, at this line:
Imports System.IO

Namespace Framework

    Public Class CRC32VFP

        Public cMessage As String = ""
        Public cFileName As String = ""
        Public lLogError As Boolean = True
        Public nCRC32 As UInteger = 0
I have: "Type of member 'nCRC32' is not CLS-compliant."

I understand this might be normal as in VB.NET, this is as is. But, I didn't get that warning when I tested it in a test application.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform