I am trying to load "MarkEzd.dll" in my c# project. For get access to the DLL file, I called it as:
static class A
{
[DllImport("MarkEzd.dll", EntryPoint = "lmc1_Initial2", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.StdCall)]
public static extern int Initialize(string PathName, bool TestMode)
}
I followed the structure supposed by "Bkjames" in this post: Loading a C++ DLL in C#
Then I wrote this line:
A.Initialize(@"The path of MarkEzd.dll", true);
but I got this error message: Unable to load DLL `MarkEzd.dll': this specified module could not be found. [Exception from HRESULT: 0x8007007E)
Does anybody have any idea? I am in Debug mode. and I see that the MarkEzd.dll is in the debug folder.