Click here to Skip to main content
15,888,733 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: urgent: vb6 code to calculate 16 bit CRC-CCITT Pin
Jay Royall6-Apr-09 2:24
Jay Royall6-Apr-09 2:24 
AnswerRe: urgent: vb6 code to calculate 16 bit CRC-CCITT Pin
CPallini6-Apr-09 3:32
mveCPallini6-Apr-09 3:32 
GeneralRe: urgent: vb6 code to calculate 16 bit CRC-CCITT Pin
singende6-Apr-09 4:08
singende6-Apr-09 4:08 
GeneralRe: urgent: vb6 code to calculate 16 bit CRC-CCITT Pin
0x3c06-Apr-09 4:11
0x3c06-Apr-09 4:11 
GeneralRe: urgent: vb6 code to calculate 16 bit CRC-CCITT Pin
CPallini6-Apr-09 5:01
mveCPallini6-Apr-09 5:01 
GeneralRe: urgent: vb6 code to calculate 16 bit CRC-CCITT Pin
0x3c06-Apr-09 5:53
0x3c06-Apr-09 5:53 
GeneralRe: urgent: vb6 code to calculate 16 bit CRC-CCITT Pin
CPallini6-Apr-09 10:44
mveCPallini6-Apr-09 10:44 
GeneralRe: urgent: vb6 code to calculate 16 bit CRC-CCITT Pin
0x3c06-Apr-09 23:24
0x3c06-Apr-09 23:24 
CPallini wrote:
Private Function calc_crc(ByVal crc_buff As Long, ByVal inp As Byte) As Long
    Dim i As Byte
    Dim x16 As Long
    For i = 0 To 7
    
        If ((crc_buff And 1) Xor (inp And 1)) = 1 Then
            x16 = &H8408&
        Else
            x16 = 0
        End If
        <big>crc_buff = crc_buff \ 2</big>
        <big>crc_buff = crc_buff Xor x16</big>
        <big>inp = inp \ 2</big>
    Next i
    calc_crc = crc_buff
End Function

Either way, my VB6 is rather rusty. I've not used it for years, so I could be wrong
GeneralRe: urgent: vb6 code to calculate 16 bit CRC-CCITT Pin
CPallini6-Apr-09 23:31
mveCPallini6-Apr-09 23:31 
GeneralRe: urgent: vb6 code to calculate 16 bit CRC-CCITT Pin
0x3c07-Apr-09 1:36
0x3c07-Apr-09 1:36 
GeneralRe: urgent: vb6 code to calculate 16 bit CRC-CCITT Pin
CPallini7-Apr-09 1:48
mveCPallini7-Apr-09 1:48 
GeneralRe: urgent: vb6 code to calculate 16 bit CRC-CCITT Pin
singende6-Apr-09 5:11
singende6-Apr-09 5:11 
GeneralRe: urgent: vb6 code to calculate 16 bit CRC-CCITT Pin
Vimalsoft(Pty) Ltd6-Apr-09 21:05
professionalVimalsoft(Pty) Ltd6-Apr-09 21:05 
GeneralRe: urgent: vb6 code to calculate 16 bit CRC-CCITT Pin
Dave Kreskowiak6-Apr-09 10:43
mveDave Kreskowiak6-Apr-09 10:43 
JokeRe: urgent: vb6 code to calculate 16 bit CRC-CCITT Pin
CPallini6-Apr-09 10:46
mveCPallini6-Apr-09 10:46 
AnswerRe: urgent: vb6 code to calculate 16 bit CRC-CCITT Pin
Christian Graus6-Apr-09 16:59
protectorChristian Graus6-Apr-09 16:59 
GeneralRe: urgent: vb6 code to calculate 16 bit CRC-CCITT Pin
DaveyM697-Apr-09 0:37
professionalDaveyM697-Apr-09 0:37 
QuestionHow to maintain two seperate bindings Pin
bhagyashri.biyani5-Apr-09 21:35
bhagyashri.biyani5-Apr-09 21:35 
Questionhelp on sending and receiving sms via VB.NET Pin
geok lin5-Apr-09 17:59
geok lin5-Apr-09 17:59 
AnswerRe: help on sending and receiving sms via VB.NET Pin
Christian Graus5-Apr-09 19:46
protectorChristian Graus5-Apr-09 19:46 
QuestionDiasble form titlebar move Pin
JonnieR5-Apr-09 10:30
JonnieR5-Apr-09 10:30 
AnswerRe: Diasble form titlebar move Pin
0x3c05-Apr-09 10:41
0x3c05-Apr-09 10:41 
AnswerSQL Server Management Pin
dlo_morea4-Apr-09 15:20
dlo_morea4-Apr-09 15:20 
GeneralRe: SQL Server Management Pin
Christian Graus4-Apr-09 16:09
protectorChristian Graus4-Apr-09 16:09 
GeneralRe: SQL Server Management Pin
Jon_Boy6-Apr-09 9:46
Jon_Boy6-Apr-09 9:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.