I followed the method described by the user Smoke in the post, How to call a C# library from Native C++ (using C++\CLI and IJW)
But, I am getting an error during runtime.
A first chance exception of type 'System.IO.FileNotFoundException' occurred in Unknown Module.
I have copied my C# dll file into the Debug folder of the my c++ project as suggested by a comment in the question mentioned above. But, I am still getting the same error.
Here is the line of code which uses the C# library.
QLNet::Date^ nowDate = gcnew QLNet::Date(15,2,2002);
More info:
If I only declare the variable( QLNet::Date^ nowDate; ) and don't allocate the memory using gcnew, I don't have any errors. I am unable to debug this issue.
The C# library I am using is Quantlib C# library