Click here to Skip to main content
15,902,002 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to activate some choosen thread? Pin
vgrigor18-Aug-03 4:13
vgrigor18-Aug-03 4:13 
GeneralRe: How to activate some choosen thread? Pin
jhwurmbach18-Aug-03 4:35
jhwurmbach18-Aug-03 4:35 
GeneralRe: How to activate some choosen thread? Pin
vgrigor18-Aug-03 4:43
vgrigor18-Aug-03 4:43 
AnswerRe: How to activate some choosen thread? Pin
Mike Ellertson19-Aug-03 11:20
sussMike Ellertson19-Aug-03 11:20 
GeneralRe: How to activate some choosen thread? Pin
vgrigor19-Aug-03 21:02
vgrigor19-Aug-03 21:02 
GeneralRe: How to activate some choosen thread? Pin
Mikey_E20-Aug-03 7:44
professionalMikey_E20-Aug-03 7:44 
GeneralRe: How to activate some choosen thread? Pin
vgrigor20-Aug-03 20:32
vgrigor20-Aug-03 20:32 
Generalhelp with a TCP Program that sends messages Pin
Jay Hova18-Aug-03 1:55
Jay Hova18-Aug-03 1:55 
Hi all,

New to programming, writing my first app using TCP.

I need to make a client server that will send messages to a server. Right now i have two dialog windows. One that takes in the IP that the user wants to connect to(Connection), and another window where the user will set the information that will be sent (Format_Msg). I would like to have a third window that tells me what is sent over and what it receives.

I can get the app to connect to the server, I just can not send the appropriate messages over to the server. I do all the connecting and instantiate a socket called ConnectServer in the Connection class. I do all the formatting of the message in the Format_Msg class.

my question is how do I send these messages now? I am trying to use the:send (SOCKET s, const char FAR * buf, int len, int flags) command but don't know what I am doing wrong.
Can I use the same connection that I made (ConnectServer), or do I have to instantiate a socket in the Format_Msg class too? If I don't, could you please tell me how I could get it to recognize the other socket that was instantiated in the Connection class?

If you have code to how i could do this, it would be great.

Many thanks in advance.
GeneralRe: help with a TCP Program that sends messages Pin
Alexander M.,18-Aug-03 1:58
Alexander M.,18-Aug-03 1:58 
GeneralRe: help with a TCP Program that sends messages Pin
Jay Hova18-Aug-03 2:04
Jay Hova18-Aug-03 2:04 
GeneralRe: help with a TCP Program that sends messages Pin
Alexander M.,18-Aug-03 2:07
Alexander M.,18-Aug-03 2:07 
GeneralRe: help with a TCP Program that sends messages Pin
Jay Hova18-Aug-03 2:12
Jay Hova18-Aug-03 2:12 
GeneralRe: help with a TCP Program that sends messages Pin
Brian Delahunty18-Aug-03 2:53
Brian Delahunty18-Aug-03 2:53 
GeneralRe: help with a TCP Program that sends messages Pin
Jay Hova18-Aug-03 3:14
Jay Hova18-Aug-03 3:14 
GeneralRe: help with a TCP Program that sends messages Pin
Brian Delahunty18-Aug-03 3:18
Brian Delahunty18-Aug-03 3:18 
GeneralNewbie: WebService,DIME, C# into C++ Pin
adaoja18-Aug-03 1:35
adaoja18-Aug-03 1:35 
GeneralScanf() in C graphic library Pin
berk_atabek18-Aug-03 1:20
berk_atabek18-Aug-03 1:20 
GeneralRe: Scanf() in C graphic library Pin
Alexander M.,18-Aug-03 2:00
Alexander M.,18-Aug-03 2:00 
GeneralMFC and std namespace-beginner question Pin
7stud18-Aug-03 0:42
7stud18-Aug-03 0:42 
GeneralRe: MFC and std namespace-beginner question Pin
Alexandru Savescu18-Aug-03 0:49
Alexandru Savescu18-Aug-03 0:49 
GeneralRe: MFC and std namespace-beginner question Pin
7stud18-Aug-03 1:14
7stud18-Aug-03 1:14 
GeneralRe: MFC and std namespace-beginner question Pin
hiseldl18-Aug-03 8:15
hiseldl18-Aug-03 8:15 
GeneralRe: MFC and std namespace-beginner question Pin
7stud18-Aug-03 10:52
7stud18-Aug-03 10:52 
GeneralRe: MFC and std namespace-beginner question Pin
Hosam Aly Mahmoud19-Aug-03 6:02
Hosam Aly Mahmoud19-Aug-03 6:02 
GeneralRe: MFC and std namespace-beginner question Pin
7stud19-Aug-03 18:15
7stud19-Aug-03 18:15 

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.