Click here to Skip to main content
16,009,185 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: ERROR in _stricmp ..... prevent duplicate section names Pin
Cedric Moonen4-Nov-08 21:31
Cedric Moonen4-Nov-08 21:31 
AnswerRe: ERROR in _stricmp ..... prevent duplicate section names Pin
CPallini4-Nov-08 22:02
mveCPallini4-Nov-08 22:02 
GeneralRe: ERROR in _stricmp ..... prevent duplicate section names Pin
anna mathew4-Nov-08 22:25
anna mathew4-Nov-08 22:25 
GeneralRe: ERROR in _stricmp ..... prevent duplicate section names Pin
CPallini4-Nov-08 22:32
mveCPallini4-Nov-08 22:32 
QuestionThreads in C++ Pin
yamaki3084-Nov-08 21:12
yamaki3084-Nov-08 21:12 
QuestionRe: Threads in C++ Pin
sashoalm4-Nov-08 23:35
sashoalm4-Nov-08 23:35 
AnswerRe: Threads in C++ Pin
yamaki3085-Nov-08 11:49
yamaki3085-Nov-08 11:49 
QuestionRe: Threads in C++ Pin
sashoalm6-Nov-08 7:55
sashoalm6-Nov-08 7:55 
yamaki308 wrote:
when the client sends a message it calls the _beginthread() function which calls the receiveMsgThread() function to keep the thread alive. The receiveMsgThread function gets the message until the loop breaks at (len > 0) where len == 0. When len == 0 it calls the recv function one last time and it blocks until I, the client, close the program. If I close the program, the host gets the message that has been received. It does the same thing for host when sending messages


Here you're describing what it does, without saying whether it is or is not the expected behavior.

yamaki308 wrote:
The entire program works as far as creating sockets, connecting to the host, and such


So, where is the problem?

yamaki308 wrote:
but the problem IS the receiveMsgThread() function


But what is it that receiveMsgThread() does wrong? Could you explain in what way exactly does it not do what it is supposed to do? Just pointing where the problem is isn't very helpful.

There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal

QuestionHausdorff-Based Image Comparison Pin
kaushal kishore sharma4-Nov-08 21:09
kaushal kishore sharma4-Nov-08 21:09 
AnswerRe: Hausdorff-Based Image Comparison Pin
SandipG 4-Nov-08 21:12
SandipG 4-Nov-08 21:12 
QuestionWrite Text Pin
MsmVc4-Nov-08 21:03
MsmVc4-Nov-08 21:03 
AnswerRe: Write Text Pin
SandipG 4-Nov-08 21:10
SandipG 4-Nov-08 21:10 
QuestionReading data from a csv file in MFC c++ and displaying in excel format Pin
SeshaSridhar4-Nov-08 19:40
SeshaSridhar4-Nov-08 19:40 
AnswerRe: Reading data from a csv file in MFC c++ and displaying in excel format Pin
Saurabh.Garg4-Nov-08 19:58
Saurabh.Garg4-Nov-08 19:58 
AnswerRe: Reading data from a csv file in MFC c++ and displaying in excel format Pin
SeshaSridhar4-Nov-08 20:17
SeshaSridhar4-Nov-08 20:17 
GeneralRe: Reading data from a csv file in MFC c++ and displaying in excel format Pin
Hamid_RT4-Nov-08 20:37
Hamid_RT4-Nov-08 20:37 
AnswerRe: Reading data from a csv file in MFC c++ and displaying in excel format Pin
ThatsAlok4-Nov-08 20:02
ThatsAlok4-Nov-08 20:02 
AnswerRe: Reading data from a csv file in MFC c++ and displaying in excel format Pin
Iain Clarke, Warrior Programmer5-Nov-08 1:12
Iain Clarke, Warrior Programmer5-Nov-08 1:12 
AnswerRe: Reading data from a csv file in MFC c++ and displaying in excel format Pin
David Crow5-Nov-08 3:04
David Crow5-Nov-08 3:04 
QuestionHow to read .xml file in MFC? Pin
AnithaSubramani4-Nov-08 18:17
AnithaSubramani4-Nov-08 18:17 
AnswerRe: How to read .xml file in MFC? Pin
ThatsAlok4-Nov-08 18:30
ThatsAlok4-Nov-08 18:30 
AnswerRe: How to read .xml file in MFC? Pin
ThatsAlok4-Nov-08 18:31
ThatsAlok4-Nov-08 18:31 
AnswerRe: How to read .xml file in MFC? Pin
Hamid_RT4-Nov-08 19:06
Hamid_RT4-Nov-08 19:06 
Question[SOLVED] How to copy a stringstream in to a buffer Pin
CodingLover4-Nov-08 18:16
CodingLover4-Nov-08 18:16 
AnswerRe: How to copy a stringstream in to a buffer Pin
ThatsAlok4-Nov-08 18:32
ThatsAlok4-Nov-08 18:32 

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.