Click here to Skip to main content
15,888,454 members
Home / Discussions / C#
   

C#

 
AnswerRe: read from serialport problem Pin
Hesham Yassin10-Jul-07 22:24
Hesham Yassin10-Jul-07 22:24 
AnswerRe: read from serialport problem Pin
Luc Pattyn10-Jul-07 23:48
sitebuilderLuc Pattyn10-Jul-07 23:48 
QuestionHEX-values Pin
roiter10-Jul-07 20:10
roiter10-Jul-07 20:10 
AnswerRe: HEX-values Pin
Martin#10-Jul-07 20:17
Martin#10-Jul-07 20:17 
GeneralRe: HEX-values Pin
roiter10-Jul-07 20:27
roiter10-Jul-07 20:27 
GeneralRe: HEX-values Pin
Martin#10-Jul-07 20:28
Martin#10-Jul-07 20:28 
GeneralRe: HEX-values Pin
Luc Pattyn10-Jul-07 23:51
sitebuilderLuc Pattyn10-Jul-07 23:51 
AnswerRe: HEX-values Pin
Guffa10-Jul-07 20:53
Guffa10-Jul-07 20:53 
In .NET the characters are not bytes, they are unicode characters. A string is basically an array of char. A char is a 16 bit value, so you can cast it to a short or an int to get the character code.

Example:

foreach (char c in someString) {
   int code = (int)c;
   Console.Write(code.ToString("x4"));
   Console.Write(" ");
}


---
single minded; short sighted; long gone;

Questionpopulating combo box on selectedindex changedevent of other combo box1 Pin
monuSaini10-Jul-07 19:44
monuSaini10-Jul-07 19:44 
AnswerRe: populating combo box on selectedindex changedevent of other combo box1 Pin
valerian.precop10-Jul-07 20:38
valerian.precop10-Jul-07 20:38 
GeneralRe: populating combo box on selectedindex changedevent of other combo box1 Pin
monuSaini10-Jul-07 20:50
monuSaini10-Jul-07 20:50 
GeneralRe: populating combo box on selectedindex changedevent of other combo box1 Pin
Nisar Inamdar10-Jul-07 20:56
Nisar Inamdar10-Jul-07 20:56 
GeneralRe: populating combo box on selectedindex changedevent of other combo box1 Pin
monuSaini10-Jul-07 21:04
monuSaini10-Jul-07 21:04 
GeneralRe: populating combo box on selectedindex changedevent of other combo box1 Pin
Nisar Inamdar10-Jul-07 21:15
Nisar Inamdar10-Jul-07 21:15 
GeneralRe: populating combo box on selectedindex changedevent of other combo box1 Pin
monuSaini10-Jul-07 21:27
monuSaini10-Jul-07 21:27 
GeneralRe: populating combo box on selectedindex changedevent of other combo box1 Pin
Nisar Inamdar10-Jul-07 22:25
Nisar Inamdar10-Jul-07 22:25 
GeneralRe: populating combo box on selectedindex changedevent of other combo box1 Pin
valerian.precop10-Jul-07 21:25
valerian.precop10-Jul-07 21:25 
GeneralRe: populating combo box on selectedindex changedevent of other combo box1 Pin
monuSaini10-Jul-07 21:46
monuSaini10-Jul-07 21:46 
QuestionException Pin
sangramkp10-Jul-07 19:27
sangramkp10-Jul-07 19:27 
AnswerRe: Exception Pin
valerian.precop10-Jul-07 20:36
valerian.precop10-Jul-07 20:36 
GeneralRe: Exception Pin
sangramkp10-Jul-07 21:17
sangramkp10-Jul-07 21:17 
GeneralRe: Exception Pin
Brady Kelly10-Jul-07 21:40
Brady Kelly10-Jul-07 21:40 
GeneralRe: Exception Pin
Rhys Gravell10-Jul-07 22:33
professionalRhys Gravell10-Jul-07 22:33 
AnswerRe: Exception Pin
valerian.precop10-Jul-07 21:39
valerian.precop10-Jul-07 21:39 
GeneralRe: Exception Pin
mav.northwind11-Jul-07 8:52
mav.northwind11-Jul-07 8:52 

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.