Click here to Skip to main content
15,894,825 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionprint the richtextbox text Pin
eyes200727-Jul-07 5:03
eyes200727-Jul-07 5:03 
AnswerRe: print the richtextbox text Pin
Paul Conrad29-Jul-07 6:16
professionalPaul Conrad29-Jul-07 6:16 
QuestionCRC 16 Pin
Cory Kimble27-Jul-07 3:46
Cory Kimble27-Jul-07 3:46 
AnswerRe: CRC 16 Pin
kubben27-Jul-07 5:24
kubben27-Jul-07 5:24 
GeneralRe: CRC 16 Pin
Cory Kimble27-Jul-07 6:43
Cory Kimble27-Jul-07 6:43 
GeneralRe: CRC 16 Pin
Luc Pattyn27-Jul-07 13:32
sitebuilderLuc Pattyn27-Jul-07 13:32 
GeneralRe: CRC 16 Pin
Cory Kimble30-Jul-07 7:03
Cory Kimble30-Jul-07 7:03 
GeneralRe: CRC 16 Pin
Luc Pattyn30-Jul-07 7:21
sitebuilderLuc Pattyn30-Jul-07 7:21 
Cory Kimble wrote:
Did I convert this right? When I run it it turns everything to 0


I think you have answered the question yourself.


BTW: The original code looks very much like C, not C#.

BTW: I read everything (everything in latin alphabet), but I don't speak VB
so I will not provide VB statements.


These are errors, the list may be incomplete:


Cory Kimble wrote:
nextone = nextone << 8 And (&H7FFFS << n - 1)


1. n has not been assigned a value yet.
2. I don't get what you are trying to do; the C code was next=next<<8;
Together with 1. this probably explains all the zeroes you are getting.

Cory Kimble wrote:
For n = 8 To 0 Step -1

3. the loop must execute 8 times, not 9


Cory Kimble wrote:
If (nextone Xor crc) And &H8000


4. Does this compile ? the C code
if((next ^ crc) & 0x8000)
is shorthand for
if(((next ^ crc) & 0x8000)!=0)
I don't know whether VB accepts it without a zero-compare.
It is proof the original is not C#


That's it for now.
If you have to publish again, please do it again with original and yours, in
PRE tags, as you did; but then include the definition of crc variable, and
the calling code (initializing crc, looping over the data, etc).

Good luck!




Questionremove Icon from Form Pin
Rupesh Kumar Swami27-Jul-07 2:37
Rupesh Kumar Swami27-Jul-07 2:37 
AnswerRe: remove Icon from Form Pin
Tom Deketelaere27-Jul-07 2:46
professionalTom Deketelaere27-Jul-07 2:46 
QuestionWhy does my TabPage not show? Pin
Steven J Jowett27-Jul-07 1:42
Steven J Jowett27-Jul-07 1:42 
AnswerRe: Why does my TabPage not show? Pin
kubben27-Jul-07 1:55
kubben27-Jul-07 1:55 
GeneralRe: Why does my TabPage not show? Pin
Steven J Jowett27-Jul-07 2:24
Steven J Jowett27-Jul-07 2:24 
Questionhow can use VScrollBar to Scroll a long page.... Pin
fmlove27-Jul-07 1:28
fmlove27-Jul-07 1:28 
Questionhow to get column in rich textbox and textbox ,when user is editing Pin
sourabhj27-Jul-07 1:12
sourabhj27-Jul-07 1:12 
QuestionObtaining Number Of Pages in Crystal Report Pin
KeithF27-Jul-07 1:00
KeithF27-Jul-07 1:00 
QuestionSelecting tabs on a tab control Pin
steve_rm27-Jul-07 0:33
steve_rm27-Jul-07 0:33 
AnswerRe: Selecting tabs on a tab control Pin
Tom Deketelaere27-Jul-07 1:04
professionalTom Deketelaere27-Jul-07 1:04 
AnswerRe: Selecting tabs on a tab control Pin
kubben27-Jul-07 2:03
kubben27-Jul-07 2:03 
GeneralRe: Selecting tabs on a tab control Pin
steve_rm27-Jul-07 2:47
steve_rm27-Jul-07 2:47 
GeneralRe: Selecting tabs on a tab control Pin
kubben27-Jul-07 2:49
kubben27-Jul-07 2:49 
Questionneed help for ruler Pin
eyes200726-Jul-07 23:49
eyes200726-Jul-07 23:49 
AnswerRe: need help for ruler Pin
Tom Deketelaere27-Jul-07 0:00
professionalTom Deketelaere27-Jul-07 0:00 
QuestionOpen an existing Excel (.xls) file & pull data from cells Pin
frankiebaby226-Jul-07 23:47
frankiebaby226-Jul-07 23:47 
Questionms comm control Pin
kk.tvm26-Jul-07 23:34
kk.tvm26-Jul-07 23:34 

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.