I have an OPC server (an application server).
I write this server using C++/CLI.
This server contain callbacks (delegates)
When the client connects to the server (enter the core of a callback function onconnectclient) I want to change the text of a text box!!!
onclientcallback is defined in a seperate class called Callbacks
In this class I have an attribute called mainform which is the main form of my application (called by application::run)
so I call in the function mainform->TextBox->Text = "text" (1)
and nothing happen (compilation succeds)
I debuged the application and when attending (1) it retrun to the top of the function onclientcallback
I don't understand the problem, should I for example declare the delegate in the initialise componenet and if yes how and why??
Please help or give me any idea!