Click here to Skip to main content
16,004,906 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: WebBrowser control, HTTPS SSL certificate security dialog Pin
sph3rex13-Nov-08 10:17
sph3rex13-Nov-08 10:17 
AnswerRe: WebBrowser control, HTTPS SSL certificate security dialog Pin
BimJeam15-Nov-08 3:56
BimJeam15-Nov-08 3:56 
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 
OK, this implementation, ummm, well, all the string handling makes this, probably, the most inefficient algorithm I've seen. Hex$() returns a string, so all the CStr's around them are redundant. On top of that, you're using the most convoluted method of string manipulation to do simple math with two bytes. All your string code is really doing this: SubTotal = Byte(0) * 256 + Byte(1).

Now, the last line is removing a compounded total from 65535. Well, in most cases, that's going to be a negative number. That's something that doesn't exist in a checksum.

You REALLY have to know the implementation being used. If the manufacturer hasn't told you, you're just guessing. Since you don't know which algorithm to use, nor do you know how to implement one, I'd suggest using a library that supports a bunch of different algorithms and try each until you either find one that works, or find out which algorithm they're using. Try this library...[^]


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




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 
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 

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.