G
Guest
I have a C DLL and I need to use in C# i tried to load and use the function
as following but exception generated with error
An unhandled exception of type 'System.EntryPointNotFoundException' occurred
in CDicLib.exe
Additional information: Unable to find an entry point named in_wn in DLL
E:\Dictionary\CDicLib\Lib\tcl84.dll.
[DllImport("E:\\Dictionary\\CDicLib\\Lib\\tcl84.dll")]
public static extern int in_wn(string searchstr, int pos);
in main funciton in c#
i called in_wn("asdasdasdasdsad",3");//exception occured
as following but exception generated with error
An unhandled exception of type 'System.EntryPointNotFoundException' occurred
in CDicLib.exe
Additional information: Unable to find an entry point named in_wn in DLL
E:\Dictionary\CDicLib\Lib\tcl84.dll.
[DllImport("E:\\Dictionary\\CDicLib\\Lib\\tcl84.dll")]
public static extern int in_wn(string searchstr, int pos);
in main funciton in c#
i called in_wn("asdasdasdasdsad",3");//exception occured