So here is the scenario:
Another member on the team is responsible for a GUI that is being programmed in C#. This GUI runs a DLL that has been coded in C++/CLI and retrieves information from the DLL.
All that is working fine. However, now there is a portion of networking code in the C++ DLL that continuously listens for new messages. When a message is received, the C# GUI needs to be notified in order to gather the information that was taken in via the TCP connection inside of the DLL.
Any pointers as to how I can communicate back up to the GUI within the c++ dll? The C# GUI has an instance of the C++ DLL, so I will need to travel the message backwards. If this was both c++, i would simply use a function pointer. However, my novice understanding of C# tells me that will not be possible. My goal is to trigger an event in some manner so that the C# GUI will know to grab the info.
Note: I know this is a bad system design, however, this is how it has to be done. If I had my way, the networking portion would have been done in C# on the gui end. So please, don't go after the architecture here, it is not something I can control.
Edit: This is probably more of a "Windows" topic, my apologies if I used the wrong forum.