I just implemented a C++ DLL into Metatrader 4.

In this DLL, a function is occasionally called by Metatrader. This function gets values from Metatrader and should pass it a C# program which is already running.

What's the proper way to do this?

Thank you for your help!