Click here to Skip to main content
15,899,313 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ class hierarchy design problem Pin
cmk12-Apr-10 12:45
cmk12-Apr-10 12:45 
AnswerRe: C++ class hierarchy design problem Pin
code_slashxx9-Apr-10 17:38
code_slashxx9-Apr-10 17:38 
GeneralRe: C++ class hierarchy design problem Pin
kylur12-Apr-10 10:10
kylur12-Apr-10 10:10 
QuestionCan PostThreadMessage Post to a Thread in a Different Process Pin
ForNow9-Apr-10 7:50
ForNow9-Apr-10 7:50 
AnswerRe: Can PostThreadMessage Post to a Thread in a Different Process Pin
Code-o-mat9-Apr-10 10:48
Code-o-mat9-Apr-10 10:48 
GeneralRe: Can PostThreadMessage Post to a Thread in a Different Process Pin
ForNow9-Apr-10 11:03
ForNow9-Apr-10 11:03 
GeneralRe: Can PostThreadMessage Post to a Thread in a Different Process Pin
Code-o-mat9-Apr-10 11:11
Code-o-mat9-Apr-10 11:11 
GeneralRe: Can PostThreadMessage Post to a Thread in a Different Process Pin
Adam Roderick J9-Apr-10 19:25
Adam Roderick J9-Apr-10 19:25 
AnswerRe: Can PostThreadMessage Post to a Thread in a Different Process Pin
cmk9-Apr-10 15:15
cmk9-Apr-10 15:15 
AnswerRe: Can PostThreadMessage Post to a Thread in a Different Process [modified] Pin
Adam Roderick J9-Apr-10 18:58
Adam Roderick J9-Apr-10 18:58 
QuestionDestructElements() and destructor not getting called Pin
David Crow9-Apr-10 6:34
David Crow9-Apr-10 6:34 
AnswerRe: DestructElements() and destructor not getting called Pin
Chris Losinger9-Apr-10 6:41
professionalChris Losinger9-Apr-10 6:41 
GeneralRe: DestructElements() and destructor not getting called Pin
David Crow9-Apr-10 7:37
David Crow9-Apr-10 7:37 
GeneralRe: DestructElements() and destructor not getting called Pin
Chris Losinger9-Apr-10 7:49
professionalChris Losinger9-Apr-10 7:49 
QuestionRe: DestructElements() and destructor not getting called Pin
David Crow9-Apr-10 7:59
David Crow9-Apr-10 7:59 
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 

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.