Example shows process run in C++ (Borland C++ 5.5) that calls dll compiled in C# (.NET compiler).
Process loads library from C# DLL, then obtains pointer to own library and sends it to C#.
C# using pointer to library in C++ loads it's exported function func()
(with name _func
).
Then C# calls C++, when C++ calls C#.
C++ side:
#include <vcl.h>