|
I have a BackgroundWorker that listens for incoming connection requests via a Tcp Socket. When the client socket connects I need to update one of my controls. I need to do this inside the thread, which in return means I need to invoke the control I need to update. The problem is no matter what I do I can't get my delegate/functions to work. Here is what I have:
// FormServer.h private: delegate void AddClientToList();
// Engine_Listener.cpp listViewClients->Invoke(FormServer::AddClientToList);
// Processor_ListView.cpp void FormServer::AddClientToList() { }
I have even tried the example on MSDN and it would not work. If someone can show me (in detail and as simple as possible) how to properly invoke a control, I would really appreciate it.
Thank you if you help. Dave.
|