Click here to Skip to main content
15,895,011 members
Home / Discussions / C#
   

C#

 
QuestionViewing large database Pin
Pius__X1-Apr-06 10:17
Pius__X1-Apr-06 10:17 
Questioncreating file on remote site c# Pin
shamsallana1-Apr-06 9:25
shamsallana1-Apr-06 9:25 
QuestionForbid to enter backspace in a textbox Pin
Ralf Hägenläuer1-Apr-06 9:16
Ralf Hägenläuer1-Apr-06 9:16 
AnswerRe: Forbid to enter backspace in a textbox Pin
Ed.Poore1-Apr-06 10:14
Ed.Poore1-Apr-06 10:14 
QuestionReturning from a modal form? (never mind) Pin
Ravi Bhavnani1-Apr-06 7:36
professionalRavi Bhavnani1-Apr-06 7:36 
QuestionQuestion about polymorphism.. Pin
e-laj1-Apr-06 5:52
e-laj1-Apr-06 5:52 
AnswerRe: Question about polymorphism.. Pin
leppie1-Apr-06 6:07
leppie1-Apr-06 6:07 
GeneralRe: Question about polymorphism.. Pin
ricardojb1-Apr-06 12:04
ricardojb1-Apr-06 12:04 
NewsRe: Question about polymorphism.. Pin
leppie1-Apr-06 16:40
leppie1-Apr-06 16:40 
GeneralRe: Question about polymorphism.. Pin
ricardojb1-Apr-06 16:43
ricardojb1-Apr-06 16:43 
GeneralRe: Question about polymorphism.. Pin
leppie1-Apr-06 17:00
leppie1-Apr-06 17:00 
GeneralRe: Question about polymorphism.. Pin
ricardojb1-Apr-06 17:03
ricardojb1-Apr-06 17:03 
GeneralRe: Question about polymorphism.. Pin
ricardojb1-Apr-06 17:13
ricardojb1-Apr-06 17:13 
GeneralRe: Question about polymorphism.. Pin
leppie1-Apr-06 23:26
leppie1-Apr-06 23:26 
GeneralRe: Question about polymorphism.. Pin
ricardojb1-Apr-06 17:01
ricardojb1-Apr-06 17:01 
QuestionHelp me please.. Pin
KORCARI1-Apr-06 5:38
KORCARI1-Apr-06 5:38 
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 

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.