Click here to Skip to main content
15,897,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: VC++ 6.0 and VC++ .net on the same computer? Pin
Joe Woodbury22-May-04 6:21
professionalJoe Woodbury22-May-04 6:21 
AnswerRe: VC++ 6.0 and VC++ .net on the same computer? Pin
Steve Mayfield22-May-04 14:24
Steve Mayfield22-May-04 14:24 
GeneralRe: VC++ 6.0 and VC++ .net on the same computer? Pin
Maxwell Chen22-May-04 22:34
Maxwell Chen22-May-04 22:34 
GeneralRe: VC++ 6.0 and VC++ .net on the same computer? Pin
Steve Mayfield23-May-04 7:58
Steve Mayfield23-May-04 7:58 
GeneralRe: VC++ 6.0 and VC++ .net on the same computer? Pin
Maxwell Chen23-May-04 16:29
Maxwell Chen23-May-04 16:29 
AnswerRe: VC++ 6.0 and VC++ .net on the same computer? Pin
toothless boots23-May-04 12:11
toothless boots23-May-04 12:11 
GeneralRe: VC++ 6.0 and VC++ .net on the same computer? Pin
Gary R. Wheeler23-May-04 12:15
Gary R. Wheeler23-May-04 12:15 
Generalsockets Pin
Ni@m21-May-04 23:32
Ni@m21-May-04 23:32 
something wrong with my func(I marked probkem arrea) :
char buf[MAXCODE];
ClearString(buf);

//Send "BEGINRECV"
if(!send(Client,"BRCV",MAXCODE,0))
return ERR;
//Request query
if(!recv(Client,buf,MAXCODE,0))
return ERR;
if (strnicmp(buf,"SUCC",4) != 0)
return NOREQUEST;
ClearString(buf);

//Send "SIZE"
if (!send(Client,"SIZE",MAXCODE,0))
return ERR;
//Request query
if(!recv(Client,buf,MAXCODE,0))
return ERR;
if (strnicmp(buf,"SUCC",4) != 0)
return NOREQUEST;
ClearString(buf);

char *recvSize;
recvSize = new char[MAXMESS];
ClearString(recvSize);

//Recieve SIZE
if(!recv(Client,recvSize,4,0))
return ERR;
if(!send(Client,"SUCC",MAXCODE,0))
return NOREQUEST;

int size = StringToInt(recvSize);
delete [] recvSize;

char *data;
data = new char[size];
ClearString(data);
// Here recv recieves "BRCV" whatever server sends. If server doesnot send anything it anyway recieves "BRCV"
// It always recieves "BRCV"
if(!recv(Client,data,size,0))
return ERR;
if(!send(Client,"SUCC",MAXCODE,0))
return NOREQUEST;

fData.Empty();
fData = data;
fData.Insert(size, '\0');

delete [] data;

//Send "ENDRECV"
if(!send(Client,"ERCV",MAXCODE,0))
return ERR;
//Request query
if(!recv(Client,buf,MAXCODE,0))
return ERR;
if (strnicmp(buf,"SUCC",4) != 0)
return NOREQUEST;
ClearString(buf);
GeneralRe: sockets Pin
toxcct22-May-04 0:04
toxcct22-May-04 0:04 
GeneralExcel automation Pin
Anonymous21-May-04 23:04
Anonymous21-May-04 23:04 
GeneralRe: Excel automation Pin
David Crow22-May-04 17:07
David Crow22-May-04 17:07 
GeneralExcel automation Pin
Anonymous21-May-04 23:02
Anonymous21-May-04 23:02 
Generalusing autoshape in dhtmleditor control Pin
senthil_kumar_project21-May-04 22:58
senthil_kumar_project21-May-04 22:58 
GeneralAdding to a number in a text file. Pin
contemptx21-May-04 22:47
contemptx21-May-04 22:47 
GeneralRe: Adding to a number in a text file. Pin
David Crow22-May-04 17:21
David Crow22-May-04 17:21 
QuestionHow to dock a dialogbox ! Pin
Shailesh Ha21-May-04 22:02
Shailesh Ha21-May-04 22:02 
AnswerRe: How to dock a dialogbox ! Pin
Kamyar Souri22-May-04 5:49
Kamyar Souri22-May-04 5:49 
QuestionHow to implement autoshapes in dhtml editor Pin
Member 52815521-May-04 20:54
Member 52815521-May-04 20:54 
Generalwhere did I do wrong? (myString class) Please help! I have to turn in tomorrow Pin
foxele21-May-04 18:45
foxele21-May-04 18:45 
GeneralRe: where did I do wrong? (myString class) Please help! I have to turn in tomorrow Pin
Maxwell Chen21-May-04 21:39
Maxwell Chen21-May-04 21:39 
GeneralRe: where did I do wrong? (myString class) Please help! I have to turn in tomorrow Pin
foxele21-May-04 22:00
foxele21-May-04 22:00 
GeneralRe: where did I do wrong? (myString class) Please help! I have to turn in tomorrow Pin
foxele21-May-04 22:05
foxele21-May-04 22:05 
GeneralRe: where did I do wrong? (myString class) Please help! I have to turn in tomorrow Pin
Maxwell Chen21-May-04 22:11
Maxwell Chen21-May-04 22:11 
GeneralRe: where did I do wrong? (myString class) Please help! I have to turn in tomorrow Pin
Maxwell Chen21-May-04 22:07
Maxwell Chen21-May-04 22:07 
GeneralRe: where did I do wrong? (myString class) Please help! I have to turn in tomorrow Pin
foxele22-May-04 17:21
foxele22-May-04 17:21 

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.