I have a dll that has a constructor that takes a C++ type string.
example definition in header file
Foo(const string &filepath);
[DllImport("FooDLL.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr Foo(ref System.String filepath);
How do I call this in C#? below gets me an "EntryPointNotFoundException", which indicates to me that the calling signature doesnt match....
public IntPtr ip;
string str = "junk";
ip = SignumIU(ref str);