Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,456 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,892 people online right now. Registration is fast and FREE... Join Now!




Thread Implementation in MFC CSocket Program.

 
Reply to this topicStart new topic

Thread Implementation in MFC CSocket Program.

megasms
8 Aug, 2008 - 08:43 PM
Post #1

New D.I.C Head
*

Joined: 23 Jul, 2008
Posts: 4

Hi Everybody.

I am new for MFC I Created the Server and Client class using CSocket. I want to send and receive the data between client and Server, I have send button in both client and server dialog, whenever i press the client send button it will send data to server and whenever i press the send button in server it will send data to client. how can i implement it using threads or timer or anyother way. Please anybody help me.



Thanks in Advance.
User is offlineProfile CardPM
+Quote Post

Martyr2
RE: Thread Implementation In MFC CSocket Program.
9 Aug, 2008 - 08:18 AM
Post #2

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,210



Thanked: 214 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
If you are still pretty new to MFC and VC++ in general you may want to do a bit more coding before you use threads. The implementation through MFC is a bit complex for a newbie but I have provided some sites that can give you a taste of what it takes...

Worker Threads in MFC - go4expert.com

Threads in MFC Part I: Worker Threads - Devhood

How to Make an MFC Worker Thread | eHow.com

These example sites can give you an idea of how it is done. You can find more by using a search word like "MFC threading"

Hope these help! smile.gif
User is online!Profile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/2/08 03:38PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month