thx alot man that did it :D yea i was thinking that since the its declared with 100 chars 50 may be used but what happens to the others :P so i guess that solves the problem :D
edit: lol one sec last problem:
Code:
if(rcv==0)
{
Data+=dta;
MessageBox("wee");
}
this code never fires, what value could rcv have when data is still in the queue without this i cannot know if its all the data or not :(
edit2: :P sorry looks like you already said that more up if rcv==0 then its an error, k but how would i find out if the data is still in the queue or not?