Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CRC32 returns negative on big files
Message
From
01/08/2011 11:38:45
 
 
To
01/08/2011 11:13:11
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01519635
Message ID:
01519820
Views:
27
>>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.
_________________________________


Why not

(1) Keep the original class

(2) add a method crc32Unsigned() as UInteger ?
The method would use the existing crc32 Integer method, convert the result to UInteger and return that ?


That way, you don't have to change that public property

Should there be any more warnings, there must be a way to turn them off
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform