title: c++ multithreaded windows GUI (accessing the forms)
body: <p>I've written a simple console application using windows sockets to work as a proxy between a server and a client. I decided to make a graphical interface for watching all the in/outgoing packets real time (like a very simple wireshark).</p>
  
  <p>The connection between the server and the client runs on a different thread than the message loop. When the server/client sends a packet, I would like that to be displayed (for example added to a simple text control) immediately. </p>
  
  <p>But since I can not access the forms from other thread than the thread where the message loop is I dont know how to handle this.</p>
  
  <p>I've found several solutions in:
  - Managed c++
  - C++/CLI
  - C#,
  but not any without using .NET platform. (I really new to this GUI topic so I am not even sure you can use windows forms without .NET)</p>
  
  <p>Maybe QT + C++ could handle this problem, but any other solution than that? If not is it possible to write a wrapper in C# / Java for the native C++ code?</p>
  
  <p>There must be many applications written in C/C++ which using a GUI, what is the general way to do that?</p>