Hello,

I've created an mfc application which at the moment listen to a specific port using csocket and output the data into a text file. This process is run in a separate thread (a worker thread I belive). The program works fine.

To upgrade the program I thought about adding a text field with a cstring object attached to it. My question is then, how can I update the textfield with the data that my listen-thread receive ? Can I post\send the data or a pointer from one thread to another ? What about synchronising ?

Links to related articles or tutorials would be much appreciated.

Cheers