I am creating delegate in C#. C# solution is class library means using dll in different application.
In C# I want to invoke C++ method(method defined by another programmer), this methods need to call on runtime. For that I am using delegate, but I don't know how to use delegate in C# and how to store C++ function details for that delegate.
below one is the high level requirement :
- Create C# DLL
- Import that DLL into C++ application.
- Call C# methods from C++ application code.
- During step 3, while invoking C# methods for particular case I needs to call C++ method for that I am using delegate. Please let me know other best approach as well.
From above mentioned steps, till step # 3 I am able to code it. For that used one of solution mentioned in below link :
How to call a C# library from Native C++ (using C++\CLI and IJW)