Hi Yiannis,
Have you tried using Visual Studio's Dependency Viewer tool on the DLL to check
that the function you're calling in the DLL is exposed in its interface ?
I am building Mitab using VS2010 to create a DLL and this is callable from C#.
I have included an extremely simple C# program to connect to the Mitab DLL and
display the version number below (It shows 2000000 in my case).
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;using
System.Runtime.InteropServices;namespace
{GetMitabLibVersionclassProgram{
[
{
s = nVersion.ToString();
}
}
}
Anthony.DllImport("mitab.dll")]publicstaticexternintmitab_c_getlibversion();staticvoidMain(string[]
args)strings;intnVersion =
mitab_c_getlibversion();Console.WriteLine(s);stringline = Console.ReadLine();
________________________________
From: Ioannis <[email protected]>
To: [email protected]
Sent: Tuesday, 15 November 2011 10:23 PM
Subject: [mitab] EntryPointNotFoundException
Hi all,
I compiled the mitab.dll 1.7.0 as advised using VisualStudio2010 tools from the
command line. My machine is running win7 64bit but I don't think that this
causes any issue at this stage. Then I created a C# project copied the dll and
the contributed classes. Unfortunately any call to the mitab functions returns
an EntryPointNotFoundExeption. Has anybody achieved to use the unmanaged dll
1.7.0 to a c# project?
Thanks in advance
Yiannis