Click here to Skip to main content
15,882,464 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: DestructElements() and destructor not getting called Pin
Chris Losinger9-Apr-10 8:08
professionalChris Losinger9-Apr-10 8:08 
AnswerRe: DestructElements() and destructor not getting called Pin
Eugen Podsypalnikov9-Apr-10 8:58
Eugen Podsypalnikov9-Apr-10 8:58 
GeneralRe: DestructElements() and destructor not getting called Pin
David Crow9-Apr-10 9:21
David Crow9-Apr-10 9:21 
GeneralRe: DestructElements() and destructor not getting called Pin
Moak9-Apr-10 10:14
Moak9-Apr-10 10:14 
GeneralRe: DestructElements() and destructor not getting called Pin
Eugen Podsypalnikov9-Apr-10 10:43
Eugen Podsypalnikov9-Apr-10 10:43 
AnswerRe: DestructElements() and destructor not getting called Pin
CPallini9-Apr-10 11:41
mveCPallini9-Apr-10 11:41 
AnswerRe: DestructElements() and destructor not getting called Pin
Ajay Vijayvargiya11-Apr-10 4:34
Ajay Vijayvargiya11-Apr-10 4:34 
QuestionReg to Unicode and MBCS problem in socket programing Pin
rrthangavel9-Apr-10 5:19
rrthangavel9-Apr-10 5:19 
Hai friends,
i'm working with client server model socket programing using VC++.
it has MFC SOCKET in client side and WIN32 SOCKET in server console application.

i'm having proplem with receiving the strings in server side.
i displayed part of code here

Client Side Coding:

UpdateData(1);
CSocket client;
client.Create ();
CString sendstr;
sendstr="Hello";
client.Connect ("127.0.0.1",2500);
int len=sendstr.GetLength ();
int sent= client.Send(LPCTSTR(sendstr),len);
UpdateData(0);


Server side coding:

char recvbuf[32]="" ;
int bytesRecv = recv( server, recvbuf, 32, 0 );
printf( "Bytes Recv: %d\n", bytesRecv );
recvbuf[bytesRecv]=NULL;
printf("%S",recvbuf);

if i run the code i get 5 in bytesRecv correctly..
but in recvbuf buffer three letters only available... like "hel"
please help me l'm waiting for u... Sniff | :^)
QuestionRe: Reg to Unicode and MBCS problem in socket programing Pin
CPallini9-Apr-10 7:21
mveCPallini9-Apr-10 7:21 
AnswerRe: Reg to Unicode and MBCS problem in socket programing Pin
Migounette10-Apr-10 1:46
Migounette10-Apr-10 1:46 
AnswerRe: Reg to Unicode and MBCS problem in socket programing Pin
Ajay Vijayvargiya11-Apr-10 4:40
Ajay Vijayvargiya11-Apr-10 4:40 
Questionget notification of a particular process start Pin
Cvaji9-Apr-10 4:58
Cvaji9-Apr-10 4:58 
AnswerRe: get notification of a particular process start Pin
David Crow9-Apr-10 5:42
David Crow9-Apr-10 5:42 
QuestionCStdioFile issue! :( Pin
Arrin9-Apr-10 4:18
Arrin9-Apr-10 4:18 
AnswerRe: CStdioFile issue! :) Pin
Cvaji9-Apr-10 5:28
Cvaji9-Apr-10 5:28 
GeneralRe: CStdioFile issue! :) Pin
Arrin13-Apr-10 4:49
Arrin13-Apr-10 4:49 
AnswerRe: CStdioFile issue! :( Pin
Ajay Vijayvargiya11-Apr-10 4:44
Ajay Vijayvargiya11-Apr-10 4:44 
GeneralRe: CStdioFile issue! :( Pin
Arrin13-Apr-10 4:50
Arrin13-Apr-10 4:50 
QuestionMessage Removed Pin
9-Apr-10 2:10
browneyes869-Apr-10 2:10 
AnswerRe: Unhandled C++ expression Pin
Saurabh.Garg9-Apr-10 2:56
Saurabh.Garg9-Apr-10 2:56 
GeneralRe: Unhandled C++ expression Pin
browneyes869-Apr-10 3:04
browneyes869-Apr-10 3:04 
GeneralRe: Unhandled C++ expression Pin
Saurabh.Garg9-Apr-10 3:07
Saurabh.Garg9-Apr-10 3:07 
GeneralRe: Unhandled C++ expression Pin
browneyes869-Apr-10 3:52
browneyes869-Apr-10 3:52 
QuestionRe: Unhandled C++ expression Pin
David Crow9-Apr-10 3:05
David Crow9-Apr-10 3:05 
AnswerRe: Unhandled C++ expression Pin
Chris Meech9-Apr-10 5:11
Chris Meech9-Apr-10 5:11 

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.