Click here to Skip to main content
15,912,400 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How can I use string SQL to search or compare DateTime correctly? Pin
Dave Kreskowiak25-May-04 17:45
mveDave Kreskowiak25-May-04 17:45 
GeneralRe: How can I use string SQL to search or compare DateTime correctly? Pin
Charlie Williams25-May-04 18:12
Charlie Williams25-May-04 18:12 
GeneralRe: How can I use string SQL to search or compare DateTime correctly? Pin
Dave Kreskowiak26-May-04 0:32
mveDave Kreskowiak26-May-04 0:32 
GeneralRe: How can I use string SQL to search or compare DateTime correctly? Pin
ATC26-May-04 11:15
ATC26-May-04 11:15 
GeneralRe: How can I use string SQL to search or compare DateTime correctly? Pin
Dave Kreskowiak26-May-04 16:22
mveDave Kreskowiak26-May-04 16:22 
GeneralAny one knows the better way to connecting to Oracle DB. Pin
jlizardo25-May-04 10:39
jlizardo25-May-04 10:39 
GeneralRe: Any one knows the better way to connecting to Oracle DB. Pin
Dave Kreskowiak25-May-04 11:36
mveDave Kreskowiak25-May-04 11:36 
QuestionHow do I perform a 2's Complement Sum in VB.Net Pin
DudleyDoorite25-May-04 9:54
DudleyDoorite25-May-04 9:54 
I have a Garmin GPS that I would like to communicate with via
a serial connection. I have downloaded the interface documentation.
The documentation indicates the communication packet has a checksum byte
that is the "2's complement Sum of all data before the checksum byte.

When I add up all of the bytes before the checksum I get a value that
is larger than an 8 bit byte. My final value is 270

If I understand correctly. I take the value of 270 and invert it
Then I add 1 to this value to get the 2's complement.

Example:
Value = 270
Original Value in bits
00000001 00001110 = 270

Value = Not Value
Inverted Value (1's complement)
11111110 11110001 = -271

Value = Value + 1
add 1 to value to get 2's complement
11111110 11110010 = -270

At this point I need to place this into a single 8 bit Byte

I assume I just drop the first 8 bits
to give me the following.
11110010 = 242

My two questions are

1) am I correct in striping off the left 8 bits?

2) how do I do this in VB.Net without having to create a bitarray and manually
processing the bits?

=================================
When I was in school, all I wanted was to get out into the real world.
Now that I'm in the real world, all I want is to go back to school.
Generaltrying to hide certain columns in a datagrid Pin
kowplunk25-May-04 7:56
kowplunk25-May-04 7:56 
GeneralRe: trying to hide certain columns in a datagrid Pin
Nick Seng25-May-04 15:45
Nick Seng25-May-04 15:45 
GeneralRe: trying to hide certain columns in a datagrid Pin
kowplunk26-May-04 4:21
kowplunk26-May-04 4:21 
GeneralRe: trying to hide certain columns in a datagrid Pin
Nick Seng26-May-04 15:19
Nick Seng26-May-04 15:19 
GeneralConverting MS Access Data Type Pin
MicSky25-May-04 4:20
MicSky25-May-04 4:20 
GeneralRe: Converting MS Access Data Type Pin
mikasa25-May-04 4:22
mikasa25-May-04 4:22 
QuestionDeploying a VB.Net application with third party dlls? Pin
palei25-May-04 1:31
palei25-May-04 1:31 
AnswerRe: Deploying a VB.Net application with third party dlls? Pin
Sarvesvara (BVKS) Dasa26-May-04 7:37
Sarvesvara (BVKS) Dasa26-May-04 7:37 
GeneralUsercontrols on Panes Pin
emari25-May-04 1:00
emari25-May-04 1:00 
GeneralRe: Usercontrols on Panes Pin
Dave Kreskowiak25-May-04 2:09
mveDave Kreskowiak25-May-04 2:09 
GeneralRe: Usercontrols on Panes Pin
Member 85737725-May-04 8:56
Member 85737725-May-04 8:56 
GeneralRe: Usercontrols on Panes Pin
Dave Kreskowiak25-May-04 11:14
mveDave Kreskowiak25-May-04 11:14 
GeneralRe: Usercontrols on Panes Pin
emari25-May-04 22:02
emari25-May-04 22:02 
GeneralRe: Usercontrols on Panes Pin
Member 85737725-May-04 9:24
Member 85737725-May-04 9:24 
Generalkernel32.dll Call Problems Pin
Pugman81224-May-04 23:03
Pugman81224-May-04 23:03 
GeneralRe: kernel32.dll Call Problems Pin
Dave Kreskowiak25-May-04 0:33
mveDave Kreskowiak25-May-04 0:33 
GeneralRe: kernel32.dll Call Problems Pin
Pugman81225-May-04 9:17
Pugman81225-May-04 9:17 

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.