Click here to Skip to main content
15,891,607 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: plz help....newbie here.....:confused: Pin
namaskaaram7-Nov-04 18:29
namaskaaram7-Nov-04 18:29 
GeneralAdding Scrollbars to a Non Scrollbar CView project. Pin
Per Svedensten4-Nov-04 23:14
Per Svedensten4-Nov-04 23:14 
GeneralRe: Adding Scrollbars to a Non Scrollbar CView project. Pin
Cedric Moonen5-Nov-04 2:39
Cedric Moonen5-Nov-04 2:39 
GeneralRe: Adding Scrollbars to a Non Scrollbar CView project. Pin
Per Svedensten5-Nov-04 3:37
Per Svedensten5-Nov-04 3:37 
GeneralRe: Adding Scrollbars to a Non Scrollbar CView project. Pin
Cedric Moonen5-Nov-04 4:07
Cedric Moonen5-Nov-04 4:07 
QuestionHow to transfer speech via TAPI Pin
Wahaj Khan4-Nov-04 23:13
Wahaj Khan4-Nov-04 23:13 
AnswerRe: How to transfer speech via TAPI Pin
Vikrant for VC++5-Nov-04 0:16
Vikrant for VC++5-Nov-04 0:16 
GeneralWinsock - Chat Problem Pin
Anonymous4-Nov-04 21:13
Anonymous4-Nov-04 21:13 
Hi out there,

I have a strange problem:

I coded a simple Client-Server chat app! It works wonders. The way it works:

The server is a multithreaded app. It waits for incoming connections and if found, start a new thread. There, in an endless loop, it waits for messages.
The Client: It connects to the server, sends its name, so that the server knows who is online. This name will be written down in a lookuptable together with the IP and the socket.
If someone writes a message, the message looks like this: "ToName0FromName: Message". So the server checks if ToName is online, through the lookuptable, and if he is, sending him the Message (after the 0).

Now my problem:

Both clients connect. One starts sending messages. The other one receives them. If the other one sends a message, the first client does receive it. But every following message wont reach the first client. No error messages, nothing. It seems the server doesnt get the message. But, Sending doesnt give any errors, and I checked, and the client is still connected to the server...
If I disconnect this client and connect again, the same thing happens, but the other way around. so the first client cant send, but not the second!


What can this be?
I read alot of papers, and tried alot, but I am still confused!
It would be so nice if you could help me!

DKT
GeneralRe: Winsock - Chat Problem Pin
vilmer5-Nov-04 2:25
vilmer5-Nov-04 2:25 
GeneralRe: Winsock - Chat Problem Pin
Anonymous5-Nov-04 2:54
Anonymous5-Nov-04 2:54 
GeneralRe: Winsock - Chat Problem Pin
thercio5-Nov-04 8:02
thercio5-Nov-04 8:02 
GeneralRe: Winsock - Chat Problem Pin
Anonymous7-Nov-04 21:49
Anonymous7-Nov-04 21:49 
GeneralRe: Winsock - Chat Problem Pin
Anonymous7-Nov-04 23:32
Anonymous7-Nov-04 23:32 
Generalmirc chatlogger Pin
stifmeister_ro4-Nov-04 20:52
stifmeister_ro4-Nov-04 20:52 
QuestionAre there any functions fast than sccanf, sprintf, strlen? Pin
freehawk4-Nov-04 20:40
freehawk4-Nov-04 20:40 
AnswerRe: Are there any functions fast than sccanf, sprintf, strlen? Pin
Henry miller5-Nov-04 2:14
Henry miller5-Nov-04 2:14 
GeneralExplain The #line Directive with example in detail, Pin
Member 5281554-Nov-04 20:04
Member 5281554-Nov-04 20:04 
Generalmsvcrt version Pin
shiraztk4-Nov-04 17:53
shiraztk4-Nov-04 17:53 
GeneralRe: msvcrt version Pin
KaЯl4-Nov-04 23:04
KaЯl4-Nov-04 23:04 
GeneralRe: msvcrt version Pin
shiraztk5-Nov-04 0:22
shiraztk5-Nov-04 0:22 
GeneralRe: msvcrt version Pin
vikramlinux5-Nov-04 0:45
vikramlinux5-Nov-04 0:45 
GeneralRe: msvcrt version Pin
vikramlinux5-Nov-04 0:52
vikramlinux5-Nov-04 0:52 
GeneralRe: msvcrt version Pin
shiraztk5-Nov-04 1:39
shiraztk5-Nov-04 1:39 
GeneralRe: msvcrt version Pin
vikramlinux5-Nov-04 1:43
vikramlinux5-Nov-04 1:43 
GeneralAll child window background color in mdi application Pin
vc-programmer-4-Nov-04 17:05
vc-programmer-4-Nov-04 17:05 

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.