Click here to Skip to main content
15,923,557 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: WebBrowser control, HTTPS SSL certificate security dialog Pin
akuma609916-Nov-08 17:34
akuma609916-Nov-08 17:34 
GeneralRe: WebBrowser control, HTTPS SSL certificate security dialog Pin
BimJeam23-Nov-08 12:13
BimJeam23-Nov-08 12:13 
QuestionModulo Checksum Claculation Pin
MatthysDT13-Nov-08 3:40
MatthysDT13-Nov-08 3:40 
AnswerRe: Modulo Checksum Claculation Pin
Dave Kreskowiak13-Nov-08 4:53
mveDave Kreskowiak13-Nov-08 4:53 
GeneralRe: Modulo Checksum Claculation Pin
MatthysDT13-Nov-08 20:44
MatthysDT13-Nov-08 20:44 
GeneralRe: Modulo Checksum Claculation Pin
Dave Kreskowiak14-Nov-08 16:17
mveDave Kreskowiak14-Nov-08 16:17 
GeneralRe: Modulo Checksum Claculation Pin
MatthysDT16-Nov-08 20:41
MatthysDT16-Nov-08 20:41 
AnswerRe: Modulo Checksum Claculation Pin
Rajesh Anuhya13-Nov-08 22:08
professionalRajesh Anuhya13-Nov-08 22:08 
Chksum calculation depends on the data which is received from your rs232 port. first u have to know which type of checksum calculation id doing in the source(unit/hardware).

some standard hardwares/units follow the standard checksum calculation. line crc-8bit,16-bit..etc... (U will get more info. from GOOGLE.).

am sending a code from my project code , how to calc the crc-16bit checksum.

Public Function crcbits16(ByVal str As String)
        Dim crc As UShort = &HFFFF
        Dim ser_data
        crc = &HFFFF
        Dim i As Long, p As Long
        i = str.Length
        For p = 0 To i - 1
            ser_data = str.Substring(p, 1)
            crc = (crc >> 8) Or (crc << 8)
            crc = crc Xor Asc(ser_data)
            crc = crc Xor (crc And &HFF) >> 4
            crc = crc Xor (crc << 8) << 4
            crc = crc Xor ((crc And &HFF) << 4) << 1
        Next
        Return CRCFormat(Hex(crc))
    End Function




--------------------------------

Public Function CRCFormat(ByVal mycrc As String)

        If Len(mycrc) < 4 Then
            mycrc = Replace(Space(4 - Len(mycrc)) & mycrc, " ", "0") '"0" & mycrc
        End If
 End Function


Rajesh B --> A Poor Workman Blames His Tools <--

GeneralRe: Modulo Checksum Claculation Pin
MatthysDT13-Nov-08 22:44
MatthysDT13-Nov-08 22:44 
GeneralRe: Modulo Checksum Claculation Pin
Rajesh Anuhya14-Nov-08 0:45
professionalRajesh Anuhya14-Nov-08 0:45 
QuestionOpen local programme from email (with link) Pin
Tom Deketelaere13-Nov-08 2:51
professionalTom Deketelaere13-Nov-08 2:51 
AnswerRe: Open local programme from email (with link) Pin
Jon_Boy13-Nov-08 4:17
Jon_Boy13-Nov-08 4:17 
GeneralRe: Open local programme from email (with link) Pin
Tom Deketelaere13-Nov-08 4:27
professionalTom Deketelaere13-Nov-08 4:27 
AnswerRe: Open local programme from email (with link) Pin
Dave Kreskowiak13-Nov-08 4:44
mveDave Kreskowiak13-Nov-08 4:44 
GeneralRe: Open local programme from email (with link) Pin
Tom Deketelaere13-Nov-08 4:56
professionalTom Deketelaere13-Nov-08 4:56 
GeneralRe: Open local programme from email (with link) Pin
Dave Kreskowiak13-Nov-08 5:27
mveDave Kreskowiak13-Nov-08 5:27 
GeneralRe: Open local programme from email (with link) Pin
Tom Deketelaere13-Nov-08 7:17
professionalTom Deketelaere13-Nov-08 7:17 
GeneralRe: Open local programme from email (with link) Pin
Dave Kreskowiak13-Nov-08 8:25
mveDave Kreskowiak13-Nov-08 8:25 
GeneralRe: Open local programme from email (with link) Pin
Tom Deketelaere13-Nov-08 8:58
professionalTom Deketelaere13-Nov-08 8:58 
GeneralRe: Open local programme from email (with link) Pin
Tom Deketelaere13-Nov-08 22:00
professionalTom Deketelaere13-Nov-08 22:00 
GeneralRe: Open local programme from email (with link) Pin
Dave Kreskowiak14-Nov-08 3:20
mveDave Kreskowiak14-Nov-08 3:20 
GeneralRe: Open local programme from email (with link) Pin
Tom Deketelaere14-Nov-08 4:27
professionalTom Deketelaere14-Nov-08 4:27 
QuestionQuickbooks integration. Pin
Stephen Lintott13-Nov-08 1:42
Stephen Lintott13-Nov-08 1:42 
AnswerRe: Quickbooks integration. Pin
Christian Graus13-Nov-08 2:29
protectorChristian Graus13-Nov-08 2:29 
GeneralRe: Quickbooks integration. Pin
Stephen Lintott13-Nov-08 2:51
Stephen Lintott13-Nov-08 2:51 

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.