Click here to Skip to main content
15,915,019 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow do I add a toolbar to a non-MFC application? Please help. Pin
adelgary19-Aug-03 2:35
adelgary19-Aug-03 2:35 
AnswerRe: How do I add a toolbar to a non-MFC application? Please help. Pin
Iain Clarke, Warrior Programmer19-Aug-03 3:14
Iain Clarke, Warrior Programmer19-Aug-03 3:14 
QuestionRight aligned toolbar button, Howto ? Pin
Thomas Andersen19-Aug-03 2:02
Thomas Andersen19-Aug-03 2:02 
QuestionDisabling alt-tab/taskswitching in full screen mode? Pin
Kayembi19-Aug-03 1:38
Kayembi19-Aug-03 1:38 
AnswerRe: Disabling alt-tab/taskswitching in full screen mode? Pin
ZoogieZork19-Aug-03 11:58
ZoogieZork19-Aug-03 11:58 
Generalprepertysheet in Formview (SDI) Pin
clack23419-Aug-03 0:47
clack23419-Aug-03 0:47 
GeneralRe: prepertysheet in Formview (SDI) Pin
vcplusplus19-Aug-03 3:14
vcplusplus19-Aug-03 3:14 
Questionmultithreaded server, block on recv(), how do i send at any moment? Pin
Kuniva19-Aug-03 0:43
Kuniva19-Aug-03 0:43 
I made a multithreaded tcp server which loops on a listening socket which accepts the connections on their own socket and spins them off in their own thread. In the thread, it just loops on the recv() call. But the recv() call doesnt return unless something is read. Now i need to be able to send data to any of the sockets or all sockets at any given time, i'm not very experienced with threads so i really didn't know if you could call send() while a recv() is waiting (which would be the case if one socket would receive something and i would call send() on all the sockets to broadcast it back) but i read somewhere that u couldn't read if it was writing and couldnt write if it was reading or something. So how do i handle this?? I've already tried to come up with a number of (be it somewhat rediculous) solutions like a main buffer in which all the receives are put and a counter for each socket keeps track of how many lines each socket needs to get out of the buffer to send, but then u get another problem because then the sockets will only send when they have received something.. Confused | :confused: Of course if it is safe to call recv() without knowing if somewhere else send() is being called then pls let me know, because i thought i read somewhere in the winsock API that it isnt but i looked again and couldnt find it anymore.

Thanks

Kuniva
--------------------------------------------

AnswerRe: multithreaded server, block on recv(), how do i send at any moment? Pin
Johnny ²19-Aug-03 1:10
Johnny ²19-Aug-03 1:10 
AnswerRe: multithreaded server, block on recv(), how do i send at any moment? Pin
Norman Bates19-Aug-03 1:22
Norman Bates19-Aug-03 1:22 
GeneralRe: multithreaded server, block on recv(), how do i send at any moment? Pin
Kuniva19-Aug-03 2:29
Kuniva19-Aug-03 2:29 
AnswerRe: multithreaded server, block on recv(), how do i send at any moment? Pin
igor196019-Aug-03 10:16
igor196019-Aug-03 10:16 
GeneralRe: multithreaded server, block on recv(), how do i send at any moment? Pin
Kuniva19-Aug-03 13:49
Kuniva19-Aug-03 13:49 
GeneralDirectX Help please Pin
Eugene V.19-Aug-03 0:22
Eugene V.19-Aug-03 0:22 
GeneralRe: DirectX Help please Pin
PremL19-Aug-03 6:14
PremL19-Aug-03 6:14 
QuestionHOW CAN I DO THIS ? Pin
bttf18-Aug-03 23:55
bttf18-Aug-03 23:55 
AnswerRe: HOW CAN I DO THIS ? Pin
vcplusplus19-Aug-03 3:30
vcplusplus19-Aug-03 3:30 
GeneralRe: HOW CAN I DO THIS ? Pin
bttf19-Aug-03 9:08
bttf19-Aug-03 9:08 
QuestionAdd sizing gripper to dialog? Pin
Dominik Reichl18-Aug-03 23:21
Dominik Reichl18-Aug-03 23:21 
AnswerRe: Add sizing gripper to dialog? Pin
Bernhard19-Aug-03 0:20
Bernhard19-Aug-03 0:20 
GeneralRe: Add sizing gripper to dialog? Pin
Dominik Reichl19-Aug-03 0:44
Dominik Reichl19-Aug-03 0:44 
AnswerRe: Add sizing gripper to dialog? Pin
Neville Franks19-Aug-03 0:24
Neville Franks19-Aug-03 0:24 
GeneralRe: Add sizing gripper to dialog? Pin
Dominik Reichl19-Aug-03 0:41
Dominik Reichl19-Aug-03 0:41 
GeneralRe: Add sizing gripper to dialog? Pin
Neville Franks19-Aug-03 1:47
Neville Franks19-Aug-03 1:47 
GeneralRe: Add sizing gripper to dialog? Pin
Dominik Reichl19-Aug-03 2:16
Dominik Reichl19-Aug-03 2:16 

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.