I have been trying to call a C++ function in a DLL, from a C# WPF application I'm working on. I've done it before and it's worked but I can't remember how I did it and can't seem to find an example that works for me.
I'm doing something wrong somewhere but I can't work out where.
I've created a project that produces a DLL in C++ with /clr set, and then created a C# WPF project added a button and then added the DLL reference to the WPF project.
Both projects and in the same solution, the DLL compiles first.
I can't seem to access functions within the DLL and somehow I remember there being both a DLL and a .lib last time. I don't know whether I'm confusing with another project.
If anyone has experience with this issue or feels they know where I'm going wrong please could you tell me about it.