Click here to Skip to main content
15,919,931 members
Home / Discussions / C#
   

C#

 
AnswerRe: Connect ASP to A C# program? Pin
Andy Brummer9-Jan-05 16:07
sitebuilderAndy Brummer9-Jan-05 16:07 
GeneralRe: Connect ASP to A C# program? Pin
Snowjim9-Jan-05 21:20
Snowjim9-Jan-05 21:20 
GeneralRe: Connect ASP to A C# program? Pin
Andy Brummer10-Jan-05 3:15
sitebuilderAndy Brummer10-Jan-05 3:15 
GeneralC# cup/parser Pin
aRtsZ8-Jan-05 19:03
aRtsZ8-Jan-05 19:03 
Generaltabcontrol tabchanged event handler Pin
Pyro Joe8-Jan-05 16:43
Pyro Joe8-Jan-05 16:43 
GeneralRe: tabcontrol tabchanged event handler Pin
Stefan Troschuetz8-Jan-05 20:46
Stefan Troschuetz8-Jan-05 20:46 
GeneralBeginRead Method Pin
mikeyhardingboyo8-Jan-05 12:48
mikeyhardingboyo8-Jan-05 12:48 
GeneralRe: BeginRead Method Pin
kiranprabhu9-Jan-05 1:42
kiranprabhu9-Jan-05 1:42 
Create a object which looks something like this

class ObjectState
{
public byte[] myReadBuffer = new byte[2048];
public NetworkStream str = set the network stream object u had created
}

now when you call beginread call it this way
ObjectState state = new ObjectState();
networkstream.BeginRead(state.myReadBuffer, 0, 2048, AsyncCallback method pointer, state)
//Pass state object to last parameter of BeginRead.
when u endread
ObjectState state;
state = (objectState) result.AsyncState;

int numberOfBytesRead = 0;

numberOfBytesRead = str.EndRead(result);

now use state.myReadBuffer; //This should contain the data u r looking for
GeneralWIZARD FOR CONSTRUCTOR?! Pin
...---...8-Jan-05 12:07
...---...8-Jan-05 12:07 
GeneralRe: WIZARD FOR CONSTRUCTOR?! Pin
Matt Gerrans9-Jan-05 9:39
Matt Gerrans9-Jan-05 9:39 
GeneralWIZARD FOR CONSTRUCTOR?! Pin
...---...8-Jan-05 12:07
...---...8-Jan-05 12:07 
GeneralRe: WIZARD FOR CONSTRUCTOR?! Pin
leppie8-Jan-05 20:35
leppie8-Jan-05 20:35 
GeneralRe: WIZARD FOR CONSTRUCTOR?! Pin
Christian Graus8-Jan-05 22:24
protectorChristian Graus8-Jan-05 22:24 
Generalthe use of keyword new, when overriding methods Pin
thallish8-Jan-05 9:52
thallish8-Jan-05 9:52 
GeneralRe: the use of keyword new, when overriding methods Pin
thallish8-Jan-05 10:17
thallish8-Jan-05 10:17 
GeneralRe: the use of keyword new, when overriding methods Pin
DavidNohejl8-Jan-05 10:27
DavidNohejl8-Jan-05 10:27 
GeneralRe: the use of keyword new, when overriding methods Pin
DavidNohejl8-Jan-05 10:24
DavidNohejl8-Jan-05 10:24 
GeneralRe: the use of keyword new, when overriding methods Pin
Adam Goossens9-Jan-05 23:00
Adam Goossens9-Jan-05 23:00 
GeneralRe: the use of keyword new, when overriding methods Pin
turbochimp10-Jan-05 2:39
turbochimp10-Jan-05 2:39 
GeneralMultiple Instances Pin
TyronX8-Jan-05 7:46
TyronX8-Jan-05 7:46 
GeneralRe: Multiple Instances Pin
Matt Gerrans8-Jan-05 8:06
Matt Gerrans8-Jan-05 8:06 
GeneralRe: Multiple Instances Pin
TyronX8-Jan-05 11:22
TyronX8-Jan-05 11:22 
GeneralRe: Multiple Instances Pin
TyronX8-Jan-05 11:41
TyronX8-Jan-05 11:41 
GeneralRe: Multiple Instances Pin
Matt Gerrans9-Jan-05 6:25
Matt Gerrans9-Jan-05 6:25 
GeneralRe: Multiple Instances Pin
Matt Gerrans9-Jan-05 6:17
Matt Gerrans9-Jan-05 6:17 

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.