Click here to Skip to main content
15,913,669 members
Home / Discussions / C#
   

C#

 
GeneralRe: TimeZone problem Pin
Heath Stewart12-Jun-04 5:07
protectorHeath Stewart12-Jun-04 5:07 
GeneralSending message to a window Pin
DavidR_r11-Jun-04 21:50
DavidR_r11-Jun-04 21:50 
GeneralRe: Sending message to a window Pin
Anonymous11-Jun-04 23:33
Anonymous11-Jun-04 23:33 
GeneralRe: Sending message to a window Pin
Heath Stewart12-Jun-04 5:03
protectorHeath Stewart12-Jun-04 5:03 
GeneralRFID - Capturing Data Pin
Tarakeshwar11-Jun-04 21:24
Tarakeshwar11-Jun-04 21:24 
GeneralRe: RFID - Capturing Data Pin
Andy *M*11-Jun-04 23:22
Andy *M*11-Jun-04 23:22 
GeneralRe: RFID - Capturing Data Pin
Heath Stewart12-Jun-04 4:51
protectorHeath Stewart12-Jun-04 4:51 
Generalc# Stream buffer problem Pin
Liskl11-Jun-04 19:14
Liskl11-Jun-04 19:14 
<br />
private string update_http()<br />
{<br />
	byte[] buf = new byte[80];<br />
	HttpWebRequest request = (HttpWebRequest)WebRequest.Create<br />
		("http://wheeloftime.net/ever_lstmsg.php");<br />
<br />
	HttpWebResponse response = (HttpWebResponse)request.GetResponse();<br />
	Stream resStream = response.GetResponseStream();<br />
<br />
	int count = resStream.Read(buf, 0, buf.Length);<br />
<br />
	msg = Encoding.UTF8.GetString(buf,0,buf.Length);<br />
			    <br />
	resStream.Close(); <br />
	Console.WriteLine(msg);<br />
	return msg;<br />
}<br />


in the above code i keep getting "Hello Loren||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||"
returned instead of just "Hello Loren"

it is returning those pipe symbols to fill the rest of the buffer and using console.writeline doesn't show them only when i display it using DirectX 9.0

surface.DrawText(0,0,update_http(),true);

onto a surface

please help me remove the | charactors somehow thank you
GeneralRe: c# Stream buffer problem Pin
leppie11-Jun-04 20:53
leppie11-Jun-04 20:53 
GeneralRe: c# Stream buffer problem Pin
Heath Stewart12-Jun-04 4:49
protectorHeath Stewart12-Jun-04 4:49 
Generaljetaudio5, winamp5 and wmp9 Pin
Taha Elsayed11-Jun-04 16:29
Taha Elsayed11-Jun-04 16:29 
GeneralRe: jetaudio5, winamp5 and wmp9 Pin
Arjan Einbu11-Jun-04 23:22
Arjan Einbu11-Jun-04 23:22 
GeneralFinding and repeating a character Pin
Rostrox11-Jun-04 15:23
Rostrox11-Jun-04 15:23 
GeneralRe: Finding and repeating a character Pin
Rostrox12-Jun-04 3:40
Rostrox12-Jun-04 3:40 
GeneralThread locking Pin
link_7911-Jun-04 12:57
link_7911-Jun-04 12:57 
GeneralRe: Thread locking Pin
Xiangyang Liu 刘向阳11-Jun-04 13:28
Xiangyang Liu 刘向阳11-Jun-04 13:28 
GeneralRe: Thread locking Pin
link_7911-Jun-04 13:48
link_7911-Jun-04 13:48 
GeneralRe: Thread locking Pin
Meysam Mahfouzi11-Jun-04 17:21
Meysam Mahfouzi11-Jun-04 17:21 
GeneralRe: Thread locking Pin
Xiangyang Liu 刘向阳12-Jun-04 3:01
Xiangyang Liu 刘向阳12-Jun-04 3:01 
GeneralRe: Thread locking Pin
link_7913-Jun-04 9:57
link_7913-Jun-04 9:57 
GeneralRe: Thread locking Pin
Meysam Mahfouzi11-Jun-04 17:13
Meysam Mahfouzi11-Jun-04 17:13 
GeneralPlaceHolder, TreeView, UserControl Pin
caheo11-Jun-04 9:22
caheo11-Jun-04 9:22 
GeneralRe: PlaceHolder, TreeView, UserControl Pin
Heath Stewart11-Jun-04 10:40
protectorHeath Stewart11-Jun-04 10:40 
Questioninefficient to create new delegate every time? Pin
vista2711-Jun-04 8:10
vista2711-Jun-04 8:10 
AnswerRe: inefficient to create new delegate every time? Pin
Heath Stewart11-Jun-04 8:48
protectorHeath Stewart11-Jun-04 8:48 

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.