Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Type of member is not CLS-compliant
Message
From
02/08/2011 13:13:59
 
 
To
02/08/2011 12:36:09
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:
01519895
Message ID:
01519921
Views:
18
>>I suppose this is related to yesterday
>>
>>I see your class uses a property to store nCRC32 Integer
>>
>>You could add an extra method that takes the calculated nCRC and returns a UInteger
>>
>>something like - There may be syntax errors
>>
>>
>>pseudo code
>>
>>   if( nCRC32 is not negative)
>>       returnvalue = nCRC32 converted to UInteger
>>   else
>>    set leftmost bit to zero
>>      convert to UInteger
>>      add  &H80000000UI
>>
>>
>>
>>
>>
>>public function GetUnsignedCRC() as UInteger
>>   
>>    dim uCRC as UInteger
>>    if( nCRC32  >= 0 ) then
>>        uCRC = CType(nCRC32 , UInteger)
>>    else
>>         uCRC = CType( (nCRC32 And &H7FFFFFFF), UInteger) + &H80000000UI
>>   endif
>>
>>  return uCRC 
>>end function
>>
>
>The CRC32VFP class is already defined for UInteger. So, this is why I cannot understand why I should convert an UInteger into another UInteger in order to resolve that warning issue.



My suggestion was to extend the other (original) crc32 class with a method, rather than having two classes that do exactly the same but return other types
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform