Click here to Skip to main content
15,919,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioncan't hide a dialog oninitdialog()? Pin
zecodela11-Sep-03 5:17
zecodela11-Sep-03 5:17 
AnswerRe: can't hide a dialog oninitdialog()? Pin
Jagadeesh VN11-Sep-03 5:39
Jagadeesh VN11-Sep-03 5:39 
GeneralRe: can't hide a dialog oninitdialog()? Pin
zecodela11-Sep-03 11:42
zecodela11-Sep-03 11:42 
AnswerRe: can't hide a dialog oninitdialog()? Pin
Nish Nishant11-Sep-03 5:54
sitebuilderNish Nishant11-Sep-03 5:54 
QuestionSetWordCharFormat can be undone?? Pin
mcguile25711-Sep-03 5:16
mcguile25711-Sep-03 5:16 
AnswerRe: SetWordCharFormat can be undone?? Pin
David Crow11-Sep-03 8:55
David Crow11-Sep-03 8:55 
AnswerRe: SetWordCharFormat can be undone?? Pin
mcguile25711-Sep-03 10:39
mcguile25711-Sep-03 10:39 
GeneralWinsock question Pin
Scozturk11-Sep-03 4:30
professionalScozturk11-Sep-03 4:30 
Hi!
I am trying to create a chat application using the async socket mode ( I dont need more than 20 connections at a time so I didnt use overlapped mode).
My chat program has a server and clients connected to it. The server returns to all clients the messages sent by a client and all the clients view the same message.
The problem is that my chat server can resend a message which came from a client to only one client... I think I made a mistake in the FD_ACCEPT message:
<br />
case FD_ACCEPT:<br />
{<br />
sockaddr_in     remoteAddr;<br />
int             iRemoteAddrLen;<br />
iRemoteAddrLen = sizeof(remoteAddr);<br />
hRemoteSocket = accept(hSocket, (sockaddr*)&remoteAddr, &iRemoteAddrLen);<br />
}<br />
break;<br />

This code accepts all incoming clients but only lets me communicate with just one WTF | :WTF: ! How can I communicate with more clients Confused | :confused: ?(Do I have to create a new socket for all new clients? OMG | :OMG: )

Thank you very much for your future answers! Sigh | :sigh:

Well... I am a beginner ...
GeneralRe: Winsock question Pin
Jagadeesh VN11-Sep-03 4:44
Jagadeesh VN11-Sep-03 4:44 
GeneralRe: Winsock question Pin
Phil Speller11-Sep-03 6:08
Phil Speller11-Sep-03 6:08 
GeneralRe: Winsock question Pin
Scozturk11-Sep-03 6:29
professionalScozturk11-Sep-03 6:29 
Question(C language) How to send command to shell? Pin
Anonymous11-Sep-03 3:05
Anonymous11-Sep-03 3:05 
AnswerRe: (C language) How to send command to shell? Pin
David Crow11-Sep-03 3:14
David Crow11-Sep-03 3:14 
AnswerRe: (C language) How to send command to shell? Pin
Jagadeesh VN11-Sep-03 4:26
Jagadeesh VN11-Sep-03 4:26 
Generalhelp mee Pin
Anonymous11-Sep-03 2:49
Anonymous11-Sep-03 2:49 
GeneralRe: help mee Pin
RChin11-Sep-03 3:20
RChin11-Sep-03 3:20 
GeneralRe: help mee Pin
jhwurmbach11-Sep-03 4:53
jhwurmbach11-Sep-03 4:53 
GeneralRe: help mee Pin
Phil Speller11-Sep-03 6:27
Phil Speller11-Sep-03 6:27 
GeneralRe: help mee Pin
RChin12-Sep-03 0:27
RChin12-Sep-03 0:27 
QuestionRemote debugging: How to see debug info (source code) in breakpoints ??? Pin
Danoo11-Sep-03 2:28
Danoo11-Sep-03 2:28 
AnswerRe: Remote debugging: How to see debug info (source code) in breakpoints ??? Pin
Jagadeesh VN11-Sep-03 4:27
Jagadeesh VN11-Sep-03 4:27 
GeneralRe: Remote debugging: How to see debug info (source code) in breakpoints ??? Pin
Danoo11-Sep-03 4:33
Danoo11-Sep-03 4:33 
GeneralRe: Remote debugging: How to see debug info (source code) in breakpoints ??? Pin
Jagadeesh VN11-Sep-03 5:35
Jagadeesh VN11-Sep-03 5:35 
AnswerRe: Remote debugging: How to see debug info (source code) in breakpoints ??? Pin
John M. Drescher11-Sep-03 5:44
John M. Drescher11-Sep-03 5:44 
GeneralVisual Studio 6 : jumping to a method Pin
Jerome Conus11-Sep-03 2:19
Jerome Conus11-Sep-03 2:19 

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.