Click here to Skip to main content
15,892,480 members
Home / Discussions / C#
   

C#

 
GeneralRe: ComboBox - remove focus Pin
NortonC18-May-05 2:19
NortonC18-May-05 2:19 
GeneralProject Type in VS 2005 Pin
rathishps18-May-05 1:05
rathishps18-May-05 1:05 
GeneralGet High Byte of Int16 Pin
zuschauer198018-May-05 0:32
zuschauer198018-May-05 0:32 
GeneralRe: Get High Byte of Int16 Pin
Marc Clifton18-May-05 1:11
mvaMarc Clifton18-May-05 1:11 
GeneralRe: Get High Byte of Int16 Pin
S. Senthil Kumar18-May-05 1:21
S. Senthil Kumar18-May-05 1:21 
GeneralRe: Get High Byte of Int16 Pin
Mike Dimmick18-May-05 1:42
Mike Dimmick18-May-05 1:42 
Generaltwo's complement Pin
zuschauer198018-May-05 1:46
zuschauer198018-May-05 1:46 
GeneralRe: two's complement Pin
Sebastian Schneider18-May-05 3:50
Sebastian Schneider18-May-05 3:50 
Two's complement, if I recall it correctly, basically is:

Negate
Add one

If you store an Int16, either both bytes are two's complement of the original integer or both bytes are "plain" integer. There is no "mix".

Additionally, if you have not calculated two's complement yourself, you should not have to "reverse" it by hand.

I mean: If you shove "1823" into a variable and then print it, you will still get "1823", even if "1823" is stored as two's complement in memory.

That also means that the approach written in prior posts will still work, as you are manipulating the "1823", not two's complement of "1823".

Cheers,
Sebastian

--
Contra vim mortem non est medicamen in hortem.
GeneralRe: two's complement Pin
zuschauer198018-May-05 22:49
zuschauer198018-May-05 22:49 
GeneralCheckedListBoxes Pin
17-May-05 23:19
suss17-May-05 23:19 
GeneralRe: CheckedListBoxes Pin
Robert Rohde18-May-05 0:34
Robert Rohde18-May-05 0:34 
Generaldeleting particular node element from xml file Pin
ksanju100017-May-05 23:11
ksanju100017-May-05 23:11 
GeneralRe: deleting particular node element from xml file Pin
Gavin Jeffrey18-May-05 0:58
Gavin Jeffrey18-May-05 0:58 
Generalserializing an array of strings Pin
Green Fuze17-May-05 22:33
Green Fuze17-May-05 22:33 
GeneralRe: serializing an array of strings Pin
Christian Graus17-May-05 22:48
protectorChristian Graus17-May-05 22:48 
GeneralRe: serializing an array of strings Pin
Green Fuze17-May-05 23:14
Green Fuze17-May-05 23:14 
GeneralRe: serializing an array of strings Pin
jinzhecheng18-May-05 7:23
jinzhecheng18-May-05 7:23 
GeneralRe: serializing an array of strings Pin
Green Fuze19-May-05 3:15
Green Fuze19-May-05 3:15 
GeneralRe: serializing an array of strings Pin
jinzhecheng20-May-05 3:11
jinzhecheng20-May-05 3:11 
GeneralRe: serializing an array of strings Pin
Green Fuze20-May-05 6:01
Green Fuze20-May-05 6:01 
Generalcall a java class Pin
Mohammad Daba'an17-May-05 22:00
Mohammad Daba'an17-May-05 22:00 
GeneralRe: call a java class Pin
Christian Graus17-May-05 22:47
protectorChristian Graus17-May-05 22:47 
GeneralRe: call a java class Pin
Mohammad Daba'an18-May-05 3:18
Mohammad Daba'an18-May-05 3:18 
GeneralRe: call a java class Pin
Christian Graus18-May-05 12:45
protectorChristian Graus18-May-05 12:45 
GeneralC# Form and SQL Stored Procedures Pin
Kyaw Soe Khaing17-May-05 21:13
Kyaw Soe Khaing17-May-05 21:13 

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.