Click here to Skip to main content
15,886,963 members
Home / Discussions / C#
   

C#

 
AnswerRe: Help me please.. Pin
ricardojb1-Apr-06 11:43
ricardojb1-Apr-06 11:43 
QuestionC# & Sound Function Pin
hung_ngole1-Apr-06 5:08
hung_ngole1-Apr-06 5:08 
QuestionSpell checker for microsoft word Pin
iinfoque1-Apr-06 4:00
iinfoque1-Apr-06 4:00 
AnswerRe: Communicating with a USB Device Pin
leppie1-Apr-06 2:55
leppie1-Apr-06 2:55 
QuestionSudoku 4 Mobile phone Pin
t4ure4n1-Apr-06 1:43
t4ure4n1-Apr-06 1:43 
QuestionDisplaying 0\0 Pin
thepersonof1-Apr-06 1:42
thepersonof1-Apr-06 1:42 
AnswerRe: Displaying 0\0 Pin
Nicholas Butler1-Apr-06 1:45
sitebuilderNicholas Butler1-Apr-06 1:45 
GeneralRe: Displaying 0\0 Pin
thepersonof1-Apr-06 2:29
thepersonof1-Apr-06 2:29 
Thanks. What should I do if its the output of a function? This is my code:
<br />
CSocketPacket theSockId = (CSocketPacket)asyn.AsyncState;<br />
                //end receive...<br />
                int iRx = 0;<br />
                iRx = theSockId.thisSocket.EndReceive(asyn);<br />
                char[] chars = new char[iRx + 1];<br />
                System.Text.Decoder d = System.Text.Encoding.ASCII.GetDecoder();<br />
                int charLen = d.GetChars(theSockId.dataBuffer, 0, iRx, chars, 0);<br />
                string szData = new System.String(chars);<br />
                //txtDataRx.Text = txtDataRx.Text + szData;<br />
                //if (szData == "!")<br />
<br />
                buffer.Append(szData);<br />
                string b = buffer.ToString();<br />
                <br />
               MessageBox.Show("buffer:"+b+" sz:"+szData);<br />


szData comes as a string with a character followed by a \0
cheers

-- modified at 8:32 Saturday 1st April, 2006
GeneralRe: Displaying 0\0 Pin
leppie1-Apr-06 3:02
leppie1-Apr-06 3:02 
AnswerRe: Displaying 0\0 Pin
Guffa1-Apr-06 4:40
Guffa1-Apr-06 4:40 
GeneralRe: Displaying 0\0 Pin
thepersonof1-Apr-06 4:59
thepersonof1-Apr-06 4:59 
GeneralRe: Displaying 0\0 Pin
thepersonof1-Apr-06 6:42
thepersonof1-Apr-06 6:42 
QuestionInconsistant accesibility Pin
thepersonof1-Apr-06 0:37
thepersonof1-Apr-06 0:37 
Questioncreat a find tool in text editor? Pin
abdelhameed8131-Mar-06 23:56
abdelhameed8131-Mar-06 23:56 
Questionhow to use flash in c# ? Pin
hdv21231-Mar-06 23:43
hdv21231-Mar-06 23:43 
AnswerRe: how to use flash in c# ? Pin
Robert M Greene1-Apr-06 15:01
Robert M Greene1-Apr-06 15:01 
QuestionPrint preview not printing... Pin
Stanciu Vlad31-Mar-06 22:51
Stanciu Vlad31-Mar-06 22:51 
AnswerRe: Print preview not printing... Pin
Ed.Poore31-Mar-06 23:09
Ed.Poore31-Mar-06 23:09 
AnswerRe: Print preview not printing... Pin
Nicholas Butler31-Mar-06 23:45
sitebuilderNicholas Butler31-Mar-06 23:45 
QuestionRe: Print preview not printing... Pin
Stanciu Vlad1-Apr-06 6:39
Stanciu Vlad1-Apr-06 6:39 
AnswerRe: Print preview not printing... Pin
Robert Rohde1-Apr-06 8:44
Robert Rohde1-Apr-06 8:44 
GeneralRe: Print preview not printing... Pin
Stanciu Vlad1-Apr-06 9:00
Stanciu Vlad1-Apr-06 9:00 
AnswerRe: Print preview not printing... Pin
Aaron Dilliard4-Apr-06 11:50
Aaron Dilliard4-Apr-06 11:50 
GeneralRe: Print preview not printing... Pin
Stanciu Vlad5-Apr-06 0:30
Stanciu Vlad5-Apr-06 0:30 
QuestionWindows Desktop Shortcut list Pin
Stephen_Mc31-Mar-06 21:58
Stephen_Mc31-Mar-06 21:58 

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.