I have a 64bit application that need to call a legacy c++ dll for some analysis. Usually that dll is a DSS logic that takes in a file, process it, and writes out the output to file.
I tried to use the function using DllImport but, it doesn't work from my application. After that I created a class library(target x86) that contains all the function to interact with regular dll but still it fails. But when I use the class library from a 32bit console application everything works like it should.
After some research and other articles on Stack Overflow, I might need to use COM. I exposed the COM interfaces and registered the dll using Regasm but how do I refer the COM dll into my 64bit application. When I try to refer the same it gives following error.
What should I do to get this working