Click here to Skip to main content
15,921,577 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Flood fill of all image objects simultaneously Pin
John R. Shaw4-May-04 20:52
John R. Shaw4-May-04 20:52 
GeneralRe: Flood fill of all image objects simultaneously Pin
Kolich4-May-04 22:23
Kolich4-May-04 22:23 
GeneralRe: Flood fill of all image objects simultaneously Pin
John R. Shaw5-May-04 9:03
John R. Shaw5-May-04 9:03 
GeneralRe: Flood fill of all image objects simultaneously Pin
Kolich6-May-04 20:10
Kolich6-May-04 20:10 
GeneralRe: Flood fill of all image objects simultaneously Pin
John R. Shaw8-May-04 4:49
John R. Shaw8-May-04 4:49 
GeneralVK code for subtract Pin
Tyrus18229-Apr-04 20:24
Tyrus18229-Apr-04 20:24 
GeneralRe: VK code for subtract Pin
ohadp29-Apr-04 21:05
ohadp29-Apr-04 21:05 
GeneralThird party toolbar Pin
*Dreamz29-Apr-04 20:01
*Dreamz29-Apr-04 20:01 
GeneralRe: Third party toolbar Pin
nguyenvhn29-Apr-04 20:48
nguyenvhn29-Apr-04 20:48 
GeneralRe: Third party toolbar Pin
*Dreamz2-May-04 18:15
*Dreamz2-May-04 18:15 
QuestionCall another program from my project ?? Pin
Mughi29-Apr-04 19:45
Mughi29-Apr-04 19:45 
AnswerRe: Call another program from my project ?? Pin
GermanGeorge29-Apr-04 22:16
GermanGeorge29-Apr-04 22:16 
GeneralRe: Call another program from my project ?? Pin
Mughi29-Apr-04 22:49
Mughi29-Apr-04 22:49 
GeneralRe: Call another program from my project ?? Pin
GermanGeorge29-Apr-04 23:15
GermanGeorge29-Apr-04 23:15 
GeneralRe: Call another program from my project ?? Pin
Mughi2-May-04 19:05
Mughi2-May-04 19:05 
GeneralRe: Call another program from my project ?? Pin
Jitendra gangwar30-Apr-04 2:26
Jitendra gangwar30-Apr-04 2:26 
GeneralRe: Call another program from my project ?? Pin
Mughi2-May-04 19:07
Mughi2-May-04 19:07 
GeneralChanging cview's size .. Pin
AbinThomas29-Apr-04 19:25
AbinThomas29-Apr-04 19:25 
GeneralRe: Changing cview's size .. Pin
Anthony_Yio29-Apr-04 23:04
Anthony_Yio29-Apr-04 23:04 
GeneralRe: Changing cview's size .. Pin
AbinThomas29-Apr-04 23:55
AbinThomas29-Apr-04 23:55 
GeneralRe: Changing cview's size .. Pin
David Crow30-Apr-04 3:52
David Crow30-Apr-04 3:52 
GeneralSockets and Active X Pin
shekar_raja29-Apr-04 18:46
shekar_raja29-Apr-04 18:46 
GeneralRe: Sockets and Active X Pin
Jitendra gangwar29-Apr-04 23:21
Jitendra gangwar29-Apr-04 23:21 
In your first question you have asked, as I understand that you want to read/write operations on a same socket. it is absolutely valid. When a client connect to the server. The server accepts it and a new socket is created that represent the client socket on the server. In tern when you write something on it in the server, is send to the client for the reading. And when client write something, that is sent to the server and the server can read that content on the same socket that is representing the client.

According to the second question, you are using the CSocket class of MFC. The CSocket provides the various notifications on the socket like something is received or sent on the socket. These notifications Functions are inherited from its base class CAsyncSocket. And you can override these functions to get the processing done of these notifications. You don't have to you the thread manually in your application for that processing. The MFC Framework already implements it. But if the SDK/Win32 API programming is the choice than you have to manually implement all this functionality.


You can find an example app based on CSocket implementation in MSDN at the below link.

Hope it would help you.
Jitendra
GeneralRe: Sockets and Active X Pin
shekar_raja6-May-04 17:51
shekar_raja6-May-04 17:51 
GeneralSQL server Named Instance Pin
vikramlinux29-Apr-04 18:03
vikramlinux29-Apr-04 18:03 

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.