Click here to Skip to main content
16,006,440 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CTreeCtrl with different colors? Pin
Sarath C17-May-06 3:46
Sarath C17-May-06 3:46 
GeneralRe: CTreeCtrl with different colors? Pin
bosfan17-May-06 4:39
bosfan17-May-06 4:39 
AnswerRe: CTreeCtrl with different colors? Pin
Hamid_RT17-May-06 6:26
Hamid_RT17-May-06 6:26 
AnswerRe: CTreeCtrl with different colors? Pin
bosfan22-May-06 4:41
bosfan22-May-06 4:41 
QuestionSockets advice Pin
Demian Panello17-May-06 3:19
Demian Panello17-May-06 3:19 
AnswerRe: Sockets advice Pin
Laxman Auti17-May-06 3:45
Laxman Auti17-May-06 3:45 
AnswerRe: Sockets advice Pin
Sarath C17-May-06 3:52
Sarath C17-May-06 3:52 
GeneralRe: Sockets advice Pin
Demian Panello17-May-06 4:31
Demian Panello17-May-06 4:31 
Hi.

No, I'm not passing the socket object to another thread. The thread in the server create the socket and it's used inside this thread. There, the server, accept connections and there, it read and send data from/to clients according some variable state, and this is the logic that I asked for, because after accept the connection the thread start to send to client the names of the files of the machine where it runs, it works, but there are some bugs at client side, it looks like the server send the data faster than the client can read. Sometimes, in the client, I can see the names of the files comming but a CString object assert. That kind of issues happend.
For this I'm asking about my logic, there is something wrong with it.
Pressing a button in the client program it try to connect to server, meanwhile the server inside the thread, (inside the while), accept the connection and start a routine using CFileFind object and get the names of the files and it sends these strings to client. The client open a text file where save the info.
I know, it's hard to give an advice about "a logic" that you can't see. Big Grin | :-D
Maybe I'm thinking the serve application like a program that read/write data in a comm port, that's why I have an infinite while with states, etc., because I have copied my logic used for a program that use Serial communication. I must to improve that.

Thank you very much for your time.


Demian.

"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my telephone."

-Bjarne Stroustrup, computer science professor, designer of C++
programming language (1950- )
QuestionHow can I get the IP address of my Server Pin
zahid_ash17-May-06 3:10
zahid_ash17-May-06 3:10 
QuestionRe: How can I get the IP address of my Server Pin
David Crow17-May-06 3:14
David Crow17-May-06 3:14 
AnswerRe: How can I get the IP address of my Server Pin
zahid_ash17-May-06 3:21
zahid_ash17-May-06 3:21 
GeneralRe: How can I get the IP address of my Server Pin
David Crow17-May-06 3:40
David Crow17-May-06 3:40 
AnswerRe: How can I get the IP address of my Server Pin
Ganesh_T17-May-06 3:16
Ganesh_T17-May-06 3:16 
AnswerRe: How can I get the IP address of my Server Pin
Laxman Auti17-May-06 3:17
Laxman Auti17-May-06 3:17 
Generalwould it work for internet? Pin
zahid_ash17-May-06 3:36
zahid_ash17-May-06 3:36 
GeneralRe: would it work for internet? Pin
David Crow17-May-06 3:42
David Crow17-May-06 3:42 
GeneralRe: would it work for internet? Pin
Laxman Auti17-May-06 3:53
Laxman Auti17-May-06 3:53 
AnswerRe: How can I get the IP address of my Server Pin
Peter Weyzen17-May-06 16:14
Peter Weyzen17-May-06 16:14 
QuestionMonitor List control auto-scroll down Pin
Immunity1817-May-06 2:26
Immunity1817-May-06 2:26 
QuestionHide the MFC application in Task Manager Pin
zahid_ash17-May-06 2:07
zahid_ash17-May-06 2:07 
AnswerRe: Hide the MFC application in Task Manager Pin
Hamid_RT17-May-06 2:13
Hamid_RT17-May-06 2:13 
GeneralRe: Hide the MFC application in Task Manager Pin
zahid_ash17-May-06 2:24
zahid_ash17-May-06 2:24 
GeneralRe: Hide the MFC application in Task Manager Pin
ThatsAlok17-May-06 3:13
ThatsAlok17-May-06 3:13 
AnswerRe: Hide the MFC application in Task Manager Pin
Naveen17-May-06 2:19
Naveen17-May-06 2:19 
GeneralRe: Hide the MFC application in Task Manager Pin
zahid_ash17-May-06 3:14
zahid_ash17-May-06 3:14 

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.